mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-23 16:36:05 +02:00
20666: Avoid creating unnecessary multios when a descriptor is closed and
then re-opened.
This commit is contained in:
parent
8adffbd027
commit
2bc51c9dbc
|
@ -1,3 +1,10 @@
|
|||
2005-01-11 Bart Schaefer <schaefer@brasslantern.com>
|
||||
|
||||
* 20666 (tweaked): Src/exec.c: In closemn(), discard the multio
|
||||
structure when it has only one descriptor so far, to avoid
|
||||
creating an unnecessary multio if a later redirect re-opens that
|
||||
descriptor.
|
||||
|
||||
2004-01-10 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20665: Completion/Unix/Command/_gnome-gv,
|
||||
|
|
|
@ -1487,7 +1487,8 @@ closemn(struct multio **mfds, int fd)
|
|||
}
|
||||
}
|
||||
_exit(0);
|
||||
}
|
||||
} else if (fd >= 0)
|
||||
mfds[fd] = NULL;
|
||||
}
|
||||
|
||||
/* close all the mnodes (failure) */
|
||||
|
|
Loading…
Reference in New Issue