From bc1769df24be8267bb710918d7b657f6de03a968 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 11 Oct 2009 22:02:02 +0000 Subject: [PATCH] fix typo --- script.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.50.0