diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2005-01-11 17:09:19 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-01-11 17:09:19 +0000 |
| commit | 2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb (patch) | |
| tree | d2e3727a168eaad1c64e1edd87319c030a4e7501 /Src/exec.c | |
| parent | * 20665: improve completion for ggv/gnome-gv. (diff) | |
| download | zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar.gz zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar.bz2 zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar.lz zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar.xz zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.tar.zst zsh-2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb.zip | |
20666: Avoid creating unnecessary multios when a descriptor is closed and
then re-opened.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 53d7ff673..b5332d81a 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1487,7 +1487,8 @@ closemn(struct multio **mfds, int fd) } } _exit(0); - } + } else if (fd >= 0) + mfds[fd] = NULL; } /* close all the mnodes (failure) */ |
