diff options
Diffstat (limited to 'support/xwaitpid.c')
-rw-r--r-- | support/xwaitpid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/support/xwaitpid.c b/support/xwaitpid.c index 5a6e540810..f577535fbf 100644 --- a/support/xwaitpid.c +++ b/support/xwaitpid.c @@ -20,6 +20,7 @@ #include <stdio.h> #include <stdlib.h> +#include <support/check.h> #include <sys/wait.h> int @@ -27,9 +28,6 @@ xwaitpid (int pid, int *status, int flags) { pid_t result = waitpid (pid, status, flags); if (result < 0) - { - printf ("error: waitpid: %m\n"); - exit (1); - } + FAIL_EXIT1 ("waitpid: %m\n"); return result; } |