This is the mail archive of the
cygwin
mailing list for the Cygwin project.
_mcleanup is called twice in forkee!
- From: jojelino <jojelino at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 22 Aug 2011 18:27:54 +0900
- Subject: _mcleanup is called twice in forkee!
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