[PATCH] Reset threadcount after fork

Thomas Pfaff tpfaff@gmx.net
Tue Sep 24 00:27:00 GMT 2002



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



More information about the Cygwin-patches mailing list