mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Don't crash when trying to close fds for a builtin command
darcs-hash:20071005150106-75c98-292df3863252c1eebd5734a241a2d80e6883f65f.gz
This commit is contained in:
parent
68857220ac
commit
e55739296d
1 changed files with 26 additions and 0 deletions
26
exec.c
26
exec.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue