diff options
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index cb2a98efe..a6b914bc1 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -434,7 +434,7 @@ MTinterface::CreateSemaphore (sem_t * _s, int pshared, int _v) item->used = true; item->shared = pshared; - item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, _v, NULL); + item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, LONG_MAX, NULL); CHECKHANDLE (NULL, 1); |