child process initialization as part of fork() -- STC

Mark Geisert mark@maxrnd.com
Tue Mar 8 08:29:00 GMT 2016


Sending corrected log to avoid minor confusion...

> -------- compile, link, and run
> ~ gcc -nostdlib -pg -g -o stc stc.c build/gcrt0.o build/crt0.o 
> build/libgmon.a build/libcygwin.a /c/Windows/system32/kernel32.dll -lgcc
>
> ~ strace -o stc.out --mask=debug+sigp+syscall ./stc
> 5592: _monstartup called
> 5592: monstartup called
> 5592: moncontrol called
> 5592: profile_off called
> 5592: profile_on called
> 5592: _monstartup called  <-- this is the odd message I'm asking about
> 5592: I'm a constructor
> 5592: I'm the parent
> 5504: I'm the child
> 5504: I'm a destructor
> 5504: _mcleanup called
> 5504: moncontrol called
> 5504: profile_off called
> 5592: I'm a destructor
> 5592: _mcleanup called
> 5592: moncontrol called
> 5592: profile_off called
>
> ~



More information about the Cygwin-developers mailing list