Fix undesired error exit on receiving SIGPIPE.

* src/tar.c: Do not ignore SIGPIPE.
* tests/sigpipe.at: New testcase.
* tests/Makefile.am, tests/testsuite.at: Add sigpipe.at
* tests/remfiles01.at: Fix error code expectation.
* NEWS: Update.
This commit is contained in:
Sergey Poznyakoff
2010-03-20 13:14:31 +02:00
parent c1d3d13493
commit 340dbf5aab
6 changed files with 54 additions and 4 deletions

View File

@@ -2570,8 +2570,6 @@ main (int argc, char **argv)
obstack_init (&argv_stk);
/* Ensure default behavior for some signals */
signal (SIGPIPE, SIG_IGN);
/* System V fork+wait does not work if SIGCHLD is ignored. */
signal (SIGCHLD, SIG_DFL);