* fhandler_console.cc (fhandler_console::close): Remove obsolete test for

vfork_cleanup.
* pipe.cc (fhandler_pipe::close): Add comment.
This commit is contained in:
Christopher Faylor
2004-01-17 03:47:27 +00:00
parent 49d0c04260
commit 46ee54222e
3 changed files with 10 additions and 2 deletions

View File

@@ -677,8 +677,7 @@ fhandler_console::close (void)
CloseHandle (get_output_handle ());
set_io_handle (NULL);
set_output_handle (NULL);
if (!cygheap->fdtab.in_vfork_cleanup () && --(cygheap->open_fhs) <= 0
&& myself->ctty != TTY_CONSOLE)
if (--(cygheap->open_fhs) <= 0 && myself->ctty != TTY_CONSOLE)
{
syscall_printf ("open_fhs %d", cygheap->open_fhs);
FreeConsole ();