]> sourceware.org Git - newlib-cygwin.git/commitdiff
* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to calling
authorChristopher Faylor <me@cgf.cx>
Fri, 16 Jan 2004 21:51:30 +0000 (21:51 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 16 Jan 2004 21:51:30 +0000 (21:51 +0000)
close_all_files since it will be zeroed.

winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc

index 16aa73fe5b4d60af8e5b9cdae68e47b8f5eaef87..b8fad26768c2967335887555f7d1249f9191f65b 100644 (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.
index cd41cb92585ab1d54fdbb11e774ea006113f6f60..c8d80e091566652b8cb4da1ad0a7852b8e71366e 100644 (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;
This page took 0.035286 seconds and 5 git commands to generate.