OSDN Git Service

* dtable.cc (dtable::find_fifo): Release lock after fifo found (still racy).
authorcgf <cgf>
Mon, 7 Jun 2004 04:26:32 +0000 (04:26 +0000)
committercgf <cgf>
Mon, 7 Jun 2004 04:26:32 +0000 (04:26 +0000)
commit7f7aaa5b34f7331c6578a16b36c1fdf9597f87a1
tree2d97bce948f2dbe5f0d37e7738949b630de0c840
parentfc5f2673dac9423d89556f5a09d3e6292e1b318f
* dtable.cc (dtable::find_fifo): Release lock after fifo found (still racy).
* fhandler.h (fhandler_fifo::get_io_handle): New fifo-specific method.
* fhandler_fifo.cc (fhandler_fifo::close): Close output_handle only if it is
open.
(fhandler_fifo::open_not_mine): Reorganize slightly.  Don't call _pinfo methods
when the fifo is owned by me or suffer dtable lock_cs deadlock.
(fhandler_fifo::open): Call open_not_mine first, otherwise open myself
(racy).
* pinfo.cc (_pinfo::commune_recv): Duplicate fifo handles here in requesting
processes arena to avoid one potential race (of many).
(_pinfo::commune_send): Move all PICOM_FIFO code under one case statement.
* thread.cc (pthread::init_mainthread) Use existing hMainProc handle rather
than calling GetCurrentProcess.
winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_fifo.cc
winsup/cygwin/pinfo.cc
winsup/cygwin/thread.cc