diff options
author | Christopher Faylor <me@cgf.cx> | 2012-12-22 07:14:37 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-12-22 07:14:37 +0400 |
commit | d3a03427bc2f8b17b7e87c07ba318f6a1df9dd70 (patch) | |
tree | 1a74ae6d916d447b12807042151e79141c79e095 /winsup/cygwin/sync.h | |
parent | c3a4634985018ad5e1e1d972ff3799254e0b88aa (diff) |
* sigproc.cc (exit_thread): undef ExitThread or suffer recursion. Attempt to
lock process prior to calling sig_send.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r-- | winsup/cygwin/sync.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h index d424d39ab..2afa1199e 100644 --- a/winsup/cygwin/sync.h +++ b/winsup/cygwin/sync.h @@ -48,9 +48,9 @@ class lock_process public: static void init () {locker.init ("lock_process");} void dont_bother () {skip_unlock = true;} - lock_process (bool exiting = false) + lock_process (bool exiting = false, DWORD howlong = INFINITE) { - locker.acquire (); + locker.acquire (howlong); skip_unlock = exiting; if (exiting && exit_state < ES_PROCESS_LOCKED) exit_state = ES_PROCESS_LOCKED; |