diff options
Diffstat (limited to 'tests/mini-termination.c')
-rw-r--r-- | tests/mini-termination.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mini-termination.c b/tests/mini-termination.c index 1830ccd5ab..e72991e286 100644 --- a/tests/mini-termination.c +++ b/tests/mini-termination.c @@ -329,8 +329,9 @@ static void start (const char* prio) static void ch_handler(int sig) { -int status; - wait(&status); +int status = 0; + + waitpid(-1, &status, 0); if (WEXITSTATUS(status) != 0 || (WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV)) { |