diff options
author | Christopher Faylor <me@cgf.cx> | 2013-09-25 15:58:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-09-25 15:58:45 +0000 |
commit | 6aa3bb2f66c142f6629f7ea454c226733640ee2a (patch) | |
tree | 7c6356ef150d63a29fe5e0ac2fea1fcaaf60fbc2 /winsup/cygwin/sigproc.h | |
parent | 1dc2c177f40875f9095dc3a10a5c93ad6eb45934 (diff) | |
download | cygnal-6aa3bb2f66c142f6629f7ea454c226733640ee2a.tar.gz cygnal-6aa3bb2f66c142f6629f7ea454c226733640ee2a.tar.bz2 cygnal-6aa3bb2f66c142f6629f7ea454c226733640ee2a.zip |
* sigproc.h (hold_everything::ischild): Declare as reference.
(hold_everything::hold_everything): Store address of caller's notion of
"ischild".
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r-- | winsup/cygwin/sigproc.h | 4 |
1 files changed, 2 insertions, 2 deletions
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() |