* fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record it
as non-inheritable for debugging purposes in case there is a subsequent fork or exec. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Allow fork_fixup to call ProtecHandle.
This commit is contained in:
@@ -1143,15 +1143,9 @@ fhandler_tty_common::fixup_after_fork (HANDLE parent)
|
||||
if (ioctl_done_event)
|
||||
fork_fixup (parent, ioctl_done_event, "ioctl_done_event");
|
||||
if (output_mutex)
|
||||
{
|
||||
fork_fixup (parent, output_mutex, "output_mutex");
|
||||
ProtectHandle (output_mutex);
|
||||
}
|
||||
fork_fixup (parent, output_mutex, "output_mutex");
|
||||
if (input_mutex)
|
||||
{
|
||||
fork_fixup (parent, input_mutex, "input_mutex");
|
||||
ProtectHandle (input_mutex);
|
||||
}
|
||||
fork_fixup (parent, input_mutex, "input_mutex");
|
||||
if (input_available_event)
|
||||
fork_fixup (parent, input_available_event, "input_available_event");
|
||||
fork_fixup (parent, inuse, "inuse");
|
||||
|
Reference in New Issue
Block a user