aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 004d9495a..5b9d0a6b3 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1347,7 +1347,12 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2])
1347 } 1347 }
1348 } 1348 }
1349 1349
1350 if (!(child->pid = fork())) { 1350#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
1351 if (!(child->pid = fork()))
1352#else
1353 if (!(child->pid = vfork()))
1354#endif
1355 {
1351 /* Set the handling for job control signals back to the default. */ 1356 /* Set the handling for job control signals back to the default. */
1352 signal(SIGINT, SIG_DFL); 1357 signal(SIGINT, SIG_DFL);
1353 signal(SIGQUIT, SIG_DFL); 1358 signal(SIGQUIT, SIG_DFL);