diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index 72186f970..59d8f3f99 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3096,9 +3096,11 @@ static FILE *generate_stream_from_list(struct pipe *head) | |||
3096 | * huge=`cat TESTFILE` # will block here forever | 3096 | * huge=`cat TESTFILE` # will block here forever |
3097 | * echo OK | 3097 | * echo OK |
3098 | */ | 3098 | */ |
3099 | pid = BB_MMU ? fork() : vfork(); | 3099 | pid = BB_MMU ? fork() : xvfork(); |
3100 | #if BB_MMU | ||
3100 | if (pid < 0) | 3101 | if (pid < 0) |
3101 | bb_perror_msg_and_die(BB_MMU ? "fork" : "vfork"); | 3102 | bb_perror_msg_and_die("fork"); |
3103 | #endif | ||
3102 | if (pid == 0) { /* child */ | 3104 | if (pid == 0) { /* child */ |
3103 | if (ENABLE_HUSH_JOB) | 3105 | if (ENABLE_HUSH_JOB) |
3104 | die_sleep = 0; /* let nofork's xfuncs die */ | 3106 | die_sleep = 0; /* let nofork's xfuncs die */ |