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; }