* dtable.h (dtable::in_vfork_cleanup): New function. True if vfork cleanup
needed. * dtable.cc (dtable::vfork_parent_restore): Remove assertion. * pipe.cc (fhandler_pipe::close): Don't close read_state during fork_fixup since it wasn't inherited.
This commit is contained in:
@@ -90,7 +90,7 @@ int fhandler_pipe::close ()
|
||||
CloseHandle (guard);
|
||||
if (writepipe_exists)
|
||||
CloseHandle (writepipe_exists);
|
||||
if (read_state)
|
||||
if (read_state && !cygheap->fdtab.in_vfork_cleanup ())
|
||||
CloseHandle (read_state);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user