mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-18 22:24:15 +00:00
Minor changes.
* src/tar.c (main): Ignore SIGPIPE. * src/system.c (sys_child_open_for_compress) (sys_child_open_for_uncompress): Reset SIGPIPE in child to default. * tests/remfiles01.at: Avoid race conditions. * tests/remfiles02.at: Likewise.
This commit is contained in:
+4
-2
@@ -331,7 +331,8 @@ sys_child_open_for_compress (void)
|
||||
/* The new born child tar is here! */
|
||||
|
||||
set_program_name (_("tar (child)"));
|
||||
|
||||
signal (SIGPIPE, SIG_DFL);
|
||||
|
||||
xdup2 (parent_pipe[PREAD], STDIN_FILENO);
|
||||
xclose (parent_pipe[PWRITE]);
|
||||
|
||||
@@ -474,7 +475,8 @@ sys_child_open_for_uncompress (void)
|
||||
/* The newborn child tar is here! */
|
||||
|
||||
set_program_name (_("tar (child)"));
|
||||
|
||||
signal (SIGPIPE, SIG_DFL);
|
||||
|
||||
xdup2 (parent_pipe[PWRITE], STDOUT_FILENO);
|
||||
xclose (parent_pipe[PREAD]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user