diff options
author | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-08-16 13:41:08 +0000 |
---|---|---|
committer | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-08-16 13:41:08 +0000 |
commit | a961443830145cf89374f19b408c093a01cf7754 (patch) | |
tree | 53a46414975563117f1527090c9e77fa4ba71ede /contrib/timeout_watchdog.c | |
parent | d6cf0a3b05199f715c3698ce1ea2df2eb26a1be3 (diff) |
fixing bugs
git-svn-id: https://gnunet.org/svn/gnunet@12574 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'contrib/timeout_watchdog.c')
-rw-r--r-- | contrib/timeout_watchdog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/timeout_watchdog.c b/contrib/timeout_watchdog.c index d257d04de7..9a1fc006d4 100644 --- a/contrib/timeout_watchdog.c +++ b/contrib/timeout_watchdog.c @@ -39,15 +39,15 @@ static void sigchld_handler(int val) int ret = 0; waitpid (child, &status, 0); - if (WIFEXITED(status) == 1) + if (WIFEXITED(status) != 0) { ret = WEXITSTATUS(status); printf("Test process exited with result %u\n", ret); } - if (WIFSIGNALED(status) == 1) + if (WIFSIGNALED(status) != 0) { - printf("Test process was signaled %u\n", WTERMSIG(status)); - ret = WTERMSIG(status); + ret = WTERMSIG(status); + printf("Test process was signaled %u\n", ret); } exit(ret); } |