[PATCH] stdio initialization

Thomas Pfaff tpfaff@gmx.net
Mon Nov 10 11:23:00 GMT 2003

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.
	* thread.cc (pthread::exit): Cleanup on thread exit.
	(__reent_t::init_clib): Set thread local clib __sdidinit var
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sinit.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031110/566be79d/attachment.ksh>

More information about the Cygwin-patches mailing list