This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] Reset threadcount after fork
- From: Thomas Pfaff <tpfaff at gmx dot net>
- To: Robert Collins <rbcollins at cygwin dot com>
- Cc: cygwin-patches at cygwin dot com
- Date: Tue, 24 Sep 2002 09:27:51 +0200 (Westeuropäische Sommerzeit)
- Subject: Re: [PATCH] Reset threadcount after fork
On Mon, 23 Sep 2002, Robert Collins wrote:
> On Mon, 2002-09-23 at 22:36, Thomas Pfaff wrote:
> >
> > 2002-09-23 Thomas Pfaff <tpfaff@gmx.net>
> >
> > * thread.cc (MTinterface::fixup_after_fork): Reset threadcount to
> > 1 after fork.
>
> Why do we need this? MTinterface::Init is also called after fork, and
> sets threadcount to 1.
Ignore it.
This patch is part of an update to MTinterface that should fix some fork
related issues, especially when fork is called from a thread other than
the mainthread.
Thomas