diff --git a/script.c b/script.c index 12fdc3b0c..d01f9b72c 100644 --- 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; }