[PATCH] pthread_fork Part 1

Thomas Pfaff tpfaff@gmx.net
Tue Sep 17 01:48:00 GMT 2002



On Mon, 16 Sep 2002, Robert Collins wrote:

> On Sat, 2002-08-17 at 06:18, Thomas Pfaff wrote:
> >
> > Rob suggested to break the pthread_fork patch into smaller chunks. Ths is
> > part 1 providing a fork save key value handling.
> > The patch will add a linked list of keys to< MTinterface and a fork buffer
> > in pthread_key where the key values are passed between parent and child.
>
> In general, I liked this patch.
> I've made some essentially stylistic alterations, to make the resulting
> code a little easier to read. I realise you followed my lead on some of
> the layout - I need to fix up my existing code too :].
>
> Here's a snapshot of HEAD with your patch after my changes.
>
> I'd love it if you sent me the source for the test case you used when
> developing this.
>

I have attached a small source file for testing.

My main goal was to get a working threaded perl, so this was the reference
source for the final testing. With all patches applied (and the changed
mutex implementation) i was able to build and run it without problems.

Thomas

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fork.c
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020917/692d60ba/attachment.c>


More information about the Cygwin-patches mailing list