diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index 3f4610391..8afa15e89 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3243,7 +3243,7 @@ static FILE *generate_stream_from_list(struct pipe *head) | |||
3243 | if (pid == 0) { /* child */ | 3243 | if (pid == 0) { /* child */ |
3244 | if (ENABLE_HUSH_JOB) | 3244 | if (ENABLE_HUSH_JOB) |
3245 | die_sleep = 0; /* let nofork's xfuncs die */ | 3245 | die_sleep = 0; /* let nofork's xfuncs die */ |
3246 | close(channel[0]); | 3246 | close(channel[0]); /* NB: close _first_, then move fd! */ |
3247 | xmove_fd(channel[1], 1); | 3247 | xmove_fd(channel[1], 1); |
3248 | /* Prevent it from trying to handle ctrl-z etc */ | 3248 | /* Prevent it from trying to handle ctrl-z etc */ |
3249 | #if ENABLE_HUSH_JOB | 3249 | #if ENABLE_HUSH_JOB |