Ensure default behavior for SIGPIPE
* src/tar.c (main): Install default handler for SIGPIPE. Proposed by Bastian Blank.
This commit is contained in:
@@ -2454,10 +2454,10 @@ main (int argc, char **argv)
|
||||
|
||||
obstack_init (&argv_stk);
|
||||
|
||||
#ifdef SIGCHLD
|
||||
/* Ensure default behavior for some signals */
|
||||
signal (SIGPIPE, SIG_DFL);
|
||||
/* System V fork+wait does not work if SIGCHLD is ignored. */
|
||||
signal (SIGCHLD, SIG_DFL);
|
||||
#endif
|
||||
|
||||
/* Decode options. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user