mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue