X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystem.c;h=ea884966ad78b8f2856ac61fb4671e211bc66cd6;hb=0c6c288b5360fcdb7f9b5826d05c01ade33253f0;hp=cf39dbd5c203f4400d6de58a701ad426edce261f;hpb=87240ee7c477ae4960cf81d3c38691ae93ceaee8;p=chaz%2Ftar diff --git a/src/system.c b/src/system.c index cf39dbd..ea88496 100644 --- a/src/system.c +++ b/src/system.c @@ -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]);