From: Sergey Poznyakoff Date: Thu, 18 Jun 2009 10:05:48 +0000 (+0300) Subject: Ensure default behavior for SIGPIPE X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0d6720288b78115095031cbb39cf32d9db670340;p=chaz%2Ftar Ensure default behavior for SIGPIPE * src/tar.c (main): Install default handler for SIGPIPE. Proposed by Bastian Blank. --- diff --git a/src/tar.c b/src/tar.c index dbffc2a..e10b804 100644 --- a/src/tar.c +++ b/src/tar.c @@ -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. */