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:
Ruslan Ermilov 2003-05-31 05:23:20 +00:00
parent d635dc4671
commit 61fa6d584f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115422

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);
}