mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
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:
parent
d635dc4671
commit
61fa6d584f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115422
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user