Re: [Gc] [PATCH] define HANDLE_FORK on unix platforms with pthreads
ivmai at mail.ru
Tue Feb 21 09:26:36 PST 2012
21 02 2012, 01:30 Andy Wingo <wingo at pobox.com>:
> On Mon 20 Feb 2012 19:21, Ivan Maidanski <ivmai at mail.ru> writes:
> > 1. I've committed your patch to master with some modifications. I
> > suppose this patch should be committed to "release" branch.
> Excellent, thanks. I didn't even think to check if pthread_atfork had a
> return value.
>> 3. I think fork-related code should be added to Cygwin (I've not tested it yet).
> I'm not knowledgeable about Win32 or Cygwin, so I have no
> comments there.
fork() support in Cygwin turned out to be not so easy - we use Win32 API in some cases directly (e.g. to get stack boundaries) which isn't tracked by Cygwin runtime.
So, I'll leave it as-is for Cygwin.
More information about the Gc