diff options
author | 2007-10-06 01:01:06 +1000 | |
---|---|---|
committer | 2007-10-06 01:01:06 +1000 | |
commit | e55739296dee794829485a7228255ffbca445bf8 (patch) | |
tree | f1c7bd295c1bde40d76629e932422462b90500b1 /exec.c | |
parent | 68857220acb7fdcc7b9b47f85493a962b4330930 (diff) |
Don't crash when trying to close fds for a builtin command
darcs-hash:20071005150106-75c98-292df3863252c1eebd5734a241a2d80e6883f65f.gz
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -1115,7 +1115,33 @@ void exec( job_t *j ) break; } - + + case IO_CLOSE: + { + /* + FIXME: + + When + requesting + that + stdin + be + closed, + we + really + don't + do + anything. How + should + this + be + handled? + */ + builtin_stdin = -1; + + break; + } + default: { builtin_stdin=-1; |