summaryrefslogtreecommitdiff
path: root/archival/libunarchive/open_transformer.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/open_transformer.c')
-rw-r--r--archival/libunarchive/open_transformer.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c
index 47c13e6..cba049f 100644
--- a/archival/libunarchive/open_transformer.c
+++ b/archival/libunarchive/open_transformer.c
@@ -19,19 +19,9 @@ void FAST_FUNC open_transformer(int fd,
int pid;
xpiped_pair(fd_pipe);
-
-#if BB_MMU
- pid = fork();
- if (pid == -1)
- bb_perror_msg_and_die("vfork" + 1);
-#else
- pid = vfork();
- if (pid == -1)
- bb_perror_msg_and_die("vfork");
-#endif
-
+ pid = BB_MMU ? xfork() : xvfork();
if (pid == 0) {
- /* child process */
+ /* Child */
close(fd_pipe.rd); /* we don't want to read from the parent */
// FIXME: error check?
#if BB_MMU