summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h4
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;