* sigproc.cc (getsem): Make semaphore always non-inheritable.
This commit is contained in:
parent
441d7aeef1
commit
0917ed5950
@ -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>
|
Mon Feb 19 22:25:53 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* dcrt0.cc (locale_init): Remove.
|
* dcrt0.cc (locale_init): Remove.
|
||||||
|
@ -899,7 +899,7 @@ getsem (_pinfo *p, const char *str, int init, int max)
|
|||||||
char sa_buf[1024];
|
char sa_buf[1024];
|
||||||
|
|
||||||
DWORD winpid = GetCurrentProcessId ();
|
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));
|
init, max, str = shared_name (str, winpid));
|
||||||
p = myself;
|
p = myself;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user