[PATCH] stdio initialization

Christopher Faylor cgf@redhat.com
Mon Nov 10 13:57:00 GMT 2003

On Mon, Nov 10, 2003 at 12:23:35PM +0100, Thomas Pfaff wrote:
>Attached patch fixes the memory leak reported by Arash Partow by
>initializing stdio during startup and setting __sdidinit from thread
>local clib appropriately.
>2003-11-10  Thomas Pfaff  <tpfaff@gmx.net>
>	* dcrt0.cc: Add prototype for __sinit.
>	(dll_crt0_1): Initialize stdio.

The above two things are already done in dcrt0.cc.  Why are you adding
additional prototypes and going to additional work?

2003-10-02  Christopher Faylor  <cgf@redhat.com>

        * dcrt0.cc (dll_crt0_1): Call newlib __sinit routine to ensure that
        stdio buffers are initialized to avoid thread initialization races.


More information about the Cygwin-patches mailing list