]> granicus.if.org Git - sudo/commitdiff
fix typo
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Oct 2009 22:02:02 +0000 (22:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Oct 2009 22:02:02 +0000 (22:02 +0000)
script.c

index 12fdc3b0c5f77308b2c9bffb46fd2a02cee694e7..d01f9b72c4933d61db90a323ac319d322e6fe343 100644 (file)
--- a/script.c
+++ b/script.c
@@ -680,8 +680,12 @@ script_child(path, argv)
 
     if (WIFEXITED(grandchild_status))
        exit(WEXITSTATUS(grandchild_status));
-    if (WIFSIGNALED(grandchild_status))
+    if (WIFSIGNALED(grandchild_status)) {
+       switch (WTERMSIG(grandchild_status)) {
+
+       }
        exit(WTERMSIG(grandchild_status) | 128);
+    }
     exit(1);
 }
 
@@ -792,7 +796,7 @@ sigchild(signo)
 #ifdef sudo_waitpid
     do {
        pid = sudo_waitpid(grandchild, &grandchild_status, WNOHANG);
-       if (pid == grandchild)
+       if (pid == grandchild) {
            alive = 0;
            break;
        }