_mcleanup is called twice in forkee!

jojelino jojelino@gmail.com
Mon Aug 22 09:25:00 GMT 2011


When a program is compiled with -pg, it causes invocation of _monstartup 
and it calls atexit, the problem is, _mcleanup is called twice in forkee!
That's because of _GLOBAL_REENT is copied when a process is forked.
Then we have two _mcleanup. (_monstartup is with __constructor__ 
attribute.) and this is not we wanted.
the same thing can be applied to any atexit call in cygwin which doesn't 
cares about forkee.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list