From 6aa3bb2f66c142f6629f7ea454c226733640ee2a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 25 Sep 2013 15:58:45 +0000 Subject: [PATCH] * sigproc.h (hold_everything::ischild): Declare as reference. (hold_everything::hold_everything): Store address of caller's notion of "ischild". --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/release/1.7.26 | 13 +++++++++++++ winsup/cygwin/sigproc.h | 4 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 winsup/cygwin/release/1.7.26 diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c522bd383..54b10d4ae 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2013-09-25 Christopher Faylor + + * 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 Paul Kunysch diff --git a/winsup/cygwin/release/1.7.26 b/winsup/cygwin/release/1.7.26 new file mode 100644 index 000000000..69ab627b7 --- /dev/null +++ b/winsup/cygwin/release/1.7.26 @@ -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 diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index 23647a458..e73e33aeb 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -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() -- 2.43.5