mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
20666: Avoid creating unnecessary multios when a descriptor is closed and
then re-opened.
This commit is contained in:
parent
8adffbd027
commit
2bc51c9dbc
2 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue