* sigproc.cc (getsem): Make semaphore always non-inheritable.

This commit is contained in:
Egor Duda
2001-02-21 11:40:22 +00:00
parent 441d7aeef1
commit 0917ed5950
2 changed files with 5 additions and 1 deletions

View File

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