diff options
author | Egor Duda <deo@logos-m.ru> | 2001-02-21 14:40:22 +0300 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2001-02-21 14:40:22 +0300 |
commit | 0917ed59507064946923a74fafc08fce173cdccd (patch) | |
tree | 5a89fc3db272083c7abbd046fa306d34081939e4 /winsup | |
parent | 441d7aeef107020fd884f8140e95a006a3f0fbea (diff) |
* sigproc.cc (getsem): Make semaphore always non-inheritable.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 2 |
2 files changed, 5 insertions, 1 deletions
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 <deo@logos-m.ru> + + * sigproc.cc (getsem): Make semaphore always non-inheritable. + Mon Feb 19 22:25:53 2001 Christopher Faylor <cgf@cygnus.com> * 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; } |