diff options
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index a8ff7b894..4ec454b88 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -521,14 +521,14 @@ static int writeTarFile(const int tar_fd, const int verboseFlag, | |||
521 | 521 | ||
522 | volatile int vfork_exec_errno = 0; | 522 | volatile int vfork_exec_errno = 0; |
523 | #if WAIT_FOR_CHILD | 523 | #if WAIT_FOR_CHILD |
524 | struct { int rd; int wr; } gzipStatusPipe; | 524 | struct fd_pair gzipStatusPipe; |
525 | #endif | 525 | #endif |
526 | struct { int rd; int wr; } gzipDataPipe; | 526 | struct fd_pair gzipDataPipe; |
527 | const char *zip_exec = (gzip == 1) ? "gzip" : "bzip2"; | 527 | const char *zip_exec = (gzip == 1) ? "gzip" : "bzip2"; |
528 | 528 | ||
529 | xpipe(&gzipDataPipe.rd); | 529 | xpiped_pair(gzipDataPipe); |
530 | #if WAIT_FOR_CHILD | 530 | #if WAIT_FOR_CHILD |
531 | xpipe(&gzipStatusPipe.rd); | 531 | xpiped_pair(gzipStatusPipe); |
532 | #endif | 532 | #endif |
533 | 533 | ||
534 | signal(SIGPIPE, SIG_IGN); /* we only want EPIPE on errors */ | 534 | signal(SIGPIPE, SIG_IGN); /* we only want EPIPE on errors */ |