* fhandler_console.cc (fhandler_console::close): Remove obsolete test for
vfork_cleanup. * pipe.cc (fhandler_pipe::close): Add comment.
This commit is contained in:
parent
49d0c04260
commit
46ee54222e
@ -1,3 +1,9 @@
|
|||||||
|
2004-01-16 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fhandler_console.cc (fhandler_console::close): Remove obsolete test
|
||||||
|
for vfork_cleanup.
|
||||||
|
* pipe.cc (fhandler_pipe::close): Add comment.
|
||||||
|
|
||||||
2004-01-16 Christopher Faylor <cgf@redhat.com>
|
2004-01-16 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* cygheap.cc (init_cygheap::close_ctty): Don't NULL ctty if it is still
|
* cygheap.cc (init_cygheap::close_ctty): Don't NULL ctty if it is still
|
||||||
|
@ -677,8 +677,7 @@ fhandler_console::close (void)
|
|||||||
CloseHandle (get_output_handle ());
|
CloseHandle (get_output_handle ());
|
||||||
set_io_handle (NULL);
|
set_io_handle (NULL);
|
||||||
set_output_handle (NULL);
|
set_output_handle (NULL);
|
||||||
if (!cygheap->fdtab.in_vfork_cleanup () && --(cygheap->open_fhs) <= 0
|
if (--(cygheap->open_fhs) <= 0 && myself->ctty != TTY_CONSOLE)
|
||||||
&& myself->ctty != TTY_CONSOLE)
|
|
||||||
{
|
{
|
||||||
syscall_printf ("open_fhs %d", cygheap->open_fhs);
|
syscall_printf ("open_fhs %d", cygheap->open_fhs);
|
||||||
FreeConsole ();
|
FreeConsole ();
|
||||||
|
@ -89,6 +89,9 @@ fhandler_pipe::close ()
|
|||||||
CloseHandle (guard);
|
CloseHandle (guard);
|
||||||
if (writepipe_exists)
|
if (writepipe_exists)
|
||||||
CloseHandle (writepipe_exists);
|
CloseHandle (writepipe_exists);
|
||||||
|
// FIXME is this vfork_cleanup test right? Is it responsible for some of
|
||||||
|
// the strange pipe behavior that has been reported in the cygwin mailing
|
||||||
|
// list?
|
||||||
if (read_state && !cygheap->fdtab.in_vfork_cleanup ())
|
if (read_state && !cygheap->fdtab.in_vfork_cleanup ())
|
||||||
CloseHandle (read_state);
|
CloseHandle (read_state);
|
||||||
if (get_handle ())
|
if (get_handle ())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user