diff options
Diffstat (limited to 'nptl/tst-exec1.c')
-rw-r--r-- | nptl/tst-exec1.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/tst-exec1.c b/nptl/tst-exec1.c index e1a5baa41f..892107d4c7 100644 --- a/nptl/tst-exec1.c +++ b/nptl/tst-exec1.c @@ -27,6 +27,7 @@ #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> +#include <support/xsignal.h> static void * @@ -56,11 +57,7 @@ do_test (void) } /* Not interested in knowing when the pipe is closed. */ - if (sigignore (SIGPIPE) != 0) - { - puts ("sigignore failed"); - exit (1); - } + xsignal (SIGPIPE, SIG_IGN); posix_spawn_file_actions_t a; if (posix_spawn_file_actions_init (&a) != 0) |