Fixed another bug in the threaded close() call; clear the

stale stdio descriptors flags.

PR:		bin/51535
Submitted by:	Enache Adrian <enache@rdslink.ro>
Reviewed by:	deischen
Approved by:	re (scottl)
This commit is contained in:
ru 2003-05-31 05:23:20 +00:00
parent 1c938f7a9e
commit 716d37783d

View File

@ -98,6 +98,10 @@ _close(int fd)
_thread_fd_table[fd] = NULL;
free(entry);
/* Drop stale pthread stdio descriptor flags. */
if (fd < 3)
_pthread_stdio_flags[fd] = -1;
/* Close the file descriptor: */
ret = __sys_close(fd);
}