* shared.cc (shared_info::create): Open global shared data section

non-inheritable to avoid accumulating stray handles in child processes.
This commit is contained in:
Corinna Vinschen 2011-11-17 22:08:14 +00:00
parent 7b2740dda3
commit 4cc465db9a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-11-17 Corinna Vinschen <corinna@vinschen.de>
* shared.cc (shared_info::create): Open global shared data section
non-inheritable to avoid accumulating stray handles in child processes.
2011-11-15 Christopher Faylor <me.cygwin2011@cgf.cx>
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.

View File

@ -398,7 +398,8 @@ shared_info::create ()
CYGWIN_VERSION_SHARED_DATA,
cygwin_shared_h,
sizeof (*cygwin_shared),
SH_CYGWIN_SHARED);
SH_CYGWIN_SHARED,
&sec_all_nih);
cygwin_shared->initialize ();
}