From 2bc51c9dbc6878bd5ed7e5f08554fc69a05c91eb Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 11 Jan 2005 17:09:19 +0000 Subject: 20666: Avoid creating unnecessary multios when a descriptor is closed and then re-opened. --- Src/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') 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) */ -- cgit 1.4.1