fclose bug causes hang in nonthreaded apps

Mike Frysinger vapier at gentoo.org
Thu Feb 8 18:05:51 UTC 2007


On Tuesday 30 January 2007, Paul Brook wrote:
> I'm seeing a hang in applications that open and close files with a
> non-threaded uClibc.  There is code in fclose() to remove a file handle
> from _stdio_openlist however it's commented out, allegedly because it is
> dead. _stdio_openlist is used in several places, including _stdio_term when
> a program exits. fclose() frees the struct, so I don't see how the code can
> possibly be redundant.
>
> In the __UCLIBC_HAS_THREADS__ && __STDIO_BUFFERS case the file is removed
> from _stdio_openlist by __STDIO_OPENLIST_DEC_USE.
>
> The attached patch fixes this bug be re-enabling the code.

merged, cheers
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070208/51bc801b/attachment-0002.pgp 


More information about the uClibc mailing list