]> sourceware.org Git - newlib-cygwin.git/commitdiff
* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
authorChristopher Faylor <me@cgf.cx>
Sat, 27 Dec 2003 02:20:07 +0000 (02:20 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 27 Dec 2003 02:20:07 +0000 (02:20 +0000)
counts as an opened handle.

winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index a63ee6e9d0b30e131f106a788c75cbb3375323b6..6067f5e1b815bbba5e887aec9d6ca1b032feab28 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-26  Christopher Faylor  <cgf@redhat.com>
+
+       * pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since
+       it counts as an opened handle.
+
 2003-12-26  Christopher Faylor  <cgf@redhat.com>
 
        * fhandler.h (fhandler_tty_master::fixup_after_fork): Remove
index 61c74db2a59d66aacb37126b8d5d8bfc20c98202..92a9ea9aaaf8654e432876f2c7760750db909926 100644 (file)
@@ -286,8 +286,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch)
            {
              syscall_printf ("ctty %p, usecount %d", cygheap->ctty,
                              cygheap->ctty->usecount);
-             if (!--cygheap->ctty->usecount)
-               cygheap->ctty->close ();
+             cygheap->ctty->close ();
            }
          cygheap->ctty = arch;
          if (arch)
This page took 0.054491 seconds and 5 git commands to generate.