[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] [Fwd: Bug#532570: tar - relies on standard SIGPIPE behavio
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] [Fwd: Bug#532570: tar - relies on standard SIGPIPE behaviour] |
Date: |
Thu, 18 Jun 2009 13:10:17 +0300 |
Bdale Garbee <address@hidden> ha escrit:
> Please comment on the attached patch from Bastian Blank regarding
> SIGPIPE behavior proposed for inclusion in my Debian packaging of tar.
It is reasonable, but it's better be done in main(). I installed the
following patch:
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. */
Regards,
Sergey