* sigproc.h (hold_everything::ischild): Declare as reference.

(hold_everything::hold_everything): Store address of caller's notion of
"ischild".
This commit is contained in:
Christopher Faylor 2013-09-25 15:58:45 +00:00
parent 1dc2c177f4
commit 6aa3bb2f66
3 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-09-25 Christopher Faylor <me.cygwin2013@cgf.cx>
* sigproc.h (hold_everything::ischild): Declare as reference.
(hold_everything::hold_everything): Store address of caller's notion of
"ischild".
2013-09-25 Christopher Faylor <me.cygwin2013@cgf.cx>
Paul Kunysch <paul.kunysch@emsys.de>

View File

@ -0,0 +1,13 @@
What's new:
-----------
What changed:
-------------
Bug fixes:
----------
- pthread_atparent hook should not be called in the child.
Fixes: http://cygwin.com/ml/cygwin/2013-09/msg00365.html

View File

@ -133,7 +133,7 @@ public:
class hold_everything
{
bool ischild;
bool& ischild;
/* Note the order of the locks below. It is important,
to avoid races, that the lock order be preserved.
@ -150,7 +150,7 @@ class hold_everything
lock_process process;
public:
hold_everything (bool x = false): ischild (x) {}
hold_everything (bool& x): ischild (x) {}
operator int () const {return signals;}
~hold_everything()