aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-10-06 01:01:06 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-10-06 01:01:06 +1000
commite55739296dee794829485a7228255ffbca445bf8 (patch)
treef1c7bd295c1bde40d76629e932422462b90500b1 /exec.c
parent68857220acb7fdcc7b9b47f85493a962b4330930 (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.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 362ab84d..f6186942 100644
--- a/exec.c
+++ b/exec.c
@@ -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;