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
1c938f7a9e
commit
716d37783d
@ -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…
x
Reference in New Issue
Block a user