diff options
author | Christopher Faylor <me@cgf.cx> | 2005-02-11 18:24:15 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-02-11 18:24:15 +0300 |
commit | cc9440b6f42536f9f3b3fca6a6c53155792a51eb (patch) | |
tree | 7839100d471d0478d72881287053dde865e70bb4 /winsup/cygwin/pipe.cc | |
parent | 199bf79367fd838d12900e70c05756f2bc29db5d (diff) |
* cygthread.cc (cygthread::release): Reset ev here if it exists.
(cygthread::terminate_thread): Eliminat racy code which reset ev and
thread_sync. Remove a few nonsensical inuse checks. Exit at the bottom.
(cygthread::detach): Rewrite to again try to ensure that we don't say we're
signalled when we are not signalled.
* fhandler.cc (fhandler_base::raw_read): Revert to signalling read success
quickly.
* pipe.cc (fhandler_pipe::close): Use base method to close handle.
* sigproc.h (WAIT_SIG_PRIORITY): Just trundle along at normal priority to allow
the pipe thread to do its thing if possible.
* pinfo.h (pinfo::zap_cwd): Declare new function.
(pinfo::zap_cwd): Move 'cd out of the way code' here.
(pinfo::exit): Use it here.
* spawn.cc (spawn_guts): And here.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index eab600aff..48499f4bc 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -210,12 +210,7 @@ fhandler_pipe::close () if (read_state && !cygheap->fdtab.in_vfork_cleanup ()) #endif ForceCloseHandle (read_state); - if (get_handle ()) - { - CloseHandle (get_handle ()); - set_io_handle (NULL); - } - return 0; + return fhandler_base::close (); } bool |