From: Bdale Garbee Date: Wed, 1 Jul 2009 18:45:35 +0000 (-0300) Subject: patch from upstream to restore SIGPIPE default action X-Git-Tag: debian/1.22-1.1~1^2^2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=00fa13ff3f2d5b6e2a94c5e948c38616ff7ad37a;hp=-c;p=debian%2Ftar patch from upstream to restore SIGPIPE default action --- 00fa13ff3f2d5b6e2a94c5e948c38616ff7ad37a diff --git a/src/tar.c b/src/tar.c index dbffc2a9..e10b8043 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. */