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, 2 insertions, 6 deletions
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c index a6bc62321..16ca6a59c 100644 --- a/archival/libunarchive/open_transformer.c +++ b/archival/libunarchive/open_transformer.c | |||
@@ -25,9 +25,7 @@ int FAST_FUNC open_transformer(int src_fd, | |||
25 | if (pid == -1) | 25 | if (pid == -1) |
26 | bb_perror_msg_and_die("can't fork"); | 26 | bb_perror_msg_and_die("can't fork"); |
27 | #else | 27 | #else |
28 | pid = vfork(); | 28 | pid = xvfork(); |
29 | if (pid == -1) | ||
30 | bb_perror_msg_and_die("can't vfork"); | ||
31 | #endif | 29 | #endif |
32 | 30 | ||
33 | if (pid == 0) { | 31 | if (pid == 0) { |
diff --git a/archival/tar.c b/archival/tar.c index 526edb69d..17ac6c55a 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -536,9 +536,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip) | |||
536 | (void) &zip_exec; | 536 | (void) &zip_exec; |
537 | #endif | 537 | #endif |
538 | 538 | ||
539 | gzipPid = vfork(); | 539 | gzipPid = xvfork(); |
540 | if (gzipPid < 0) | ||
541 | bb_perror_msg_and_die("can't vfork"); | ||
542 | 540 | ||
543 | if (gzipPid == 0) { | 541 | if (gzipPid == 0) { |
544 | /* child */ | 542 | /* child */ |