X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=src%2Ftar.c;h=e10b80431c1c60ba5f7fa2ee04b9e0f07310970a;hp=dbffc2a983be5462ce4ce988d140ac978ef76122;hb=00fa13ff3f2d5b6e2a94c5e948c38616ff7ad37a;hpb=785cdec4450a1459fdbb90df1344b69be34e0059 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. */