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:
authorEgor Duda <deo@logos-m.ru>2001-02-21 14:40:22 +0300
committerEgor Duda <deo@logos-m.ru>2001-02-21 14:40:22 +0300
commit0917ed59507064946923a74fafc08fce173cdccd (patch)
tree5a89fc3db272083c7abbd046fa306d34081939e4 /winsup/cygwin/sigproc.cc
parent441d7aeef107020fd884f8140e95a006a3f0fbea (diff)
* sigproc.cc (getsem): Make semaphore always non-inheritable.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 43be57e08..f31660ee1 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -899,7 +899,7 @@ getsem (_pinfo *p, const char *str, int init, int max)
char sa_buf[1024];
DWORD winpid = GetCurrentProcessId ();
- h = CreateSemaphore (allow_ntsec ? sec_user (sa_buf) : &sec_none_nih,
+ h = CreateSemaphore (allow_ntsec ? sec_user_nih (sa_buf) : &sec_none_nih,
init, max, str = shared_name (str, winpid));
p = myself;
}