Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-03 21:50:25 +0300
committerChristopher Faylor <me@cgf.cx>2001-01-03 21:50:25 +0300
commit4104f35e67ee1fbf89859a9790d12064ca6f4414 (patch)
tree4ae4c03acfe848a2d37d5b8beddf23ba6671a69e /winsup/cygwin/thread.cc
parent234ad742b1e38e061fd13a1138c3f4eb95da4bc2 (diff)
* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc2
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);