diff options
author | Christopher Faylor <me@cgf.cx> | 2001-01-03 21:50:25 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-01-03 21:50:25 +0300 |
commit | 4104f35e67ee1fbf89859a9790d12064ca6f4414 (patch) | |
tree | 4ae4c03acfe848a2d37d5b8beddf23ba6671a69e /winsup/cygwin/thread.cc | |
parent | 234ad742b1e38e061fd13a1138c3f4eb95da4bc2 (diff) |
* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.
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); |