[PATCH]: File pointer release
Mon Jan 19 21:01:00 GMT 2004
The FILE pointer release in fclose and freopen is not thread safe.
As soon as the FILE pointers _flag member is set to 0 the FILE pointer
can be reused by other threads. This can be avoided by resetting the
_flag member as the final operation.
2004-01-19 Thomas Pfaff <firstname.lastname@example.org>
* libc/stdio/fclose.c (fclose): Release FILE as the last step.
* libc/stdio/freopen.c (freopen): Ditto.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Newlib