Don't crash when trying to close fds for a builtin command

darcs-hash:20071005150106-75c98-292df3863252c1eebd5734a241a2d80e6883f65f.gz
This commit is contained in:
liljencrantz 2007-10-06 01:01:06 +10:00
parent 68857220ac
commit e55739296d

26
exec.c
View file

@ -1116,6 +1116,32 @@ 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;