* cygheap.cc (init_cygheap::close_ctty): Remove obsolete code.
* dcrt0.cc (child_info_spawn::handle_spawn): Signal ready after we've run fixup_after_exec. * dtable.cc (dtable::fixup_after_exec): Add debugging output. * fhandler_tty.cc (fhandler_pty_master::doecho): Use class version of to_master. (fhandler_tty_common::close): Remove obsolete code. (fhandler_tty_slave::fixup_after_exec): Don't close, since this is done in dtable's fixup_after_exec. (revisit later?) (fhandler_pty_master::fixup_after_exec): Ditto.
This commit is contained in:
@@ -693,7 +693,10 @@ dtable::fixup_after_exec ()
|
||||
if (fh->close_on_exec ())
|
||||
{
|
||||
if (fh->archetype)
|
||||
fh->close ();
|
||||
{
|
||||
debug_printf ("closing fd %d since it is an archetype", i);
|
||||
fh->close ();
|
||||
}
|
||||
release (i);
|
||||
}
|
||||
else if (i == 0)
|
||||
|
Reference in New Issue
Block a user