* fhandler.cc (fhandler_base::fork_fixup): Pass old handle to setclexec_pid.
This commit is contained in:
parent
6ea0c04e7c
commit
0fc07e4d69
|
@ -1,3 +1,8 @@
|
|||
2001-10-30 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* fhandler.cc (fhandler_base::fork_fixup): Pass old handle to
|
||||
setclexec_pid.
|
||||
|
||||
2001-10-30 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh.
|
||||
|
|
|
@ -1644,7 +1644,7 @@ fhandler_base::fork_fixup (HANDLE parent, HANDLE &h, const char *name)
|
|||
{
|
||||
debug_printf ("%s success - oldh %p, h %p", get_name (), oh, h);
|
||||
// someday, maybe ProtectHandle2 (h, name);
|
||||
setclexec_pid (h, h, !get_close_on_exec ());
|
||||
setclexec_pid (oh, h, !get_close_on_exec ());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue