* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to calling

close_all_files since it will be zeroed.
This commit is contained in:
Christopher Faylor 2004-01-16 21:51:30 +00:00
parent 4af71a917c
commit 001197aee3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-01-16 Christopher Faylor <cgf@redhat.com>
* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to
calling close_all_files since it will be zeroed.
2004-01-15 Christopher Faylor <cgf@redhat.com>
* gentls_offsets: Reinstate unlink of temp files.

View File

@ -750,6 +750,7 @@ dtable::vfork_parent_restore ()
{
lock ();
fhandler_tty_slave *ctty_on_hold = cygheap->ctty_on_hold;
close_all_files ();
fhandler_base **deleteme = fds;
fds = fds_on_hold;
@ -757,7 +758,7 @@ dtable::vfork_parent_restore ()
cfree (deleteme);
unlock ();
cygheap->ctty = cygheap->ctty_on_hold; // revert
cygheap->ctty = ctty_on_hold; // revert
if (cygheap->ctty)
cygheap->ctty->close (); // Undo previous bump of this archetype
cygheap->ctty_on_hold = NULL;