Re: fork handler for parent process called in both parent and child process

2013-09-25 Thread Christopher Faylor
On Wed, Sep 25, 2013 at 10:43:58AM +0200, Andreas Steenpass wrote: >Please consider the following testcase: Should be fixed in the upcoming snapshot (and eventually in 1.7.26). Thanks for the test case. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://c

fork handler for parent process called in both parent and child process

2013-09-25 Thread Andreas Steenpass
Please consider the following testcase: #include #include #include// compile with -lpthread or -pthread void atfork_prepare() { printf("atfork_prepare, pid: %d\n", getpid()); } void atfork_parent() { printf("atfork_parent, pid: %d\n", getpid()); } void atfork_