Bdale Garbee <[email protected]> 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
