From 0917ed59507064946923a74fafc08fce173cdccd Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Wed, 21 Feb 2001 11:40:22 +0000 Subject: [PATCH] * sigproc.cc (getsem): Make semaphore always non-inheritable. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/sigproc.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2f58397fa..73fd3a24d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2001-02-21 Egor Duda + + * sigproc.cc (getsem): Make semaphore always non-inheritable. + Mon Feb 19 22:25:53 2001 Christopher Faylor * dcrt0.cc (locale_init): Remove. 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; }