diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/open_transformer.c | 4 | ||||
-rw-r--r-- | archival/tar.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c index 456d3e986..58a89b918 100644 --- a/archival/libunarchive/open_transformer.c +++ b/archival/libunarchive/open_transformer.c | |||
@@ -17,9 +17,7 @@ int open_transformer(int src_fd, | |||
17 | int fd_pipe[2]; | 17 | int fd_pipe[2]; |
18 | int pid; | 18 | int pid; |
19 | 19 | ||
20 | if (pipe(fd_pipe) != 0) { | 20 | xpipe(fd_pipe); |
21 | bb_perror_msg_and_die("can't create pipe"); | ||
22 | } | ||
23 | 21 | ||
24 | pid = fork(); | 22 | pid = fork(); |
25 | if (pid == -1) { | 23 | if (pid == -1) { |
diff --git a/archival/tar.c b/archival/tar.c index 79979b05f..e634cc670 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -507,8 +507,8 @@ static int writeTarFile(const int tar_fd, const int verboseFlag, | |||
507 | volatile int vfork_exec_errno = 0; | 507 | volatile int vfork_exec_errno = 0; |
508 | const char *zip_exec = (gzip == 1) ? "gzip" : "bzip2"; | 508 | const char *zip_exec = (gzip == 1) ? "gzip" : "bzip2"; |
509 | 509 | ||
510 | if (pipe(gzipDataPipe) < 0 || pipe(gzipStatusPipe) < 0) | 510 | xpipe(gzipDataPipe); |
511 | bb_perror_msg_and_die("pipe"); | 511 | xpipe(gzipStatusPipe); |
512 | 512 | ||
513 | signal(SIGPIPE, SIG_IGN); /* we only want EPIPE on errors */ | 513 | signal(SIGPIPE, SIG_IGN); /* we only want EPIPE on errors */ |
514 | 514 | ||