This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog configure configur ...
- From: cgf at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 24 Jan 2004 01:53:58 -0000
- Subject: src/winsup/cygwin ChangeLog configure configur ...
CVSROOT: /cvs/src
Module name: src
Branch: cr-0x9e
Changes by: cgf@sourceware.org 2004-01-24 01:53:58
Modified files:
winsup/cygwin : ChangeLog configure configure.in cygheap.cc
cygheap.h dcrt0.cc debug.cc debug.h dtable.cc
dtable.h exceptions.cc fhandler.cc
fhandler_socket.cc fhandler_tty.cc net.cc
perthread.h pinfo.cc pipe.cc sigproc.cc
spawn.cc syscalls.cc thread.cc
Log message:
* fhandler_socket.cc (fhandler_socket::create_secret_event): Avoid creating
multiple handles. Always allow event inheritance but set the handle
inheritance appropriately. Improve error handling.
(fhandler_socket::check_peer_secret_event): Improve error handling.
(fhandler_socket::close_secret_event): Simply call CloseHandle.
(fhandler_socket::set_close_on_exec): Set secret event inheritance.
* configure.in: Remove NEWVFORK default.
* configure: Regenerate.
* dcrt0.cc: Conditionalize vfork stuff throughout.
* dtable.cc: Ditto.
* perthread.h: Ditto.
* pipe.cc (fhandler_pipe::close): Ditto.
* spawn.cc (spawnve): Ditto.
* syscalls.cc (setsid): Ditto.
* exceptions.cc (sigpacket::process): Use macro to refer to vfork pid.
* debug.cc (verify_handle): Define new function.
* debug.h (VerifyHandle): Define new macro.
(verify_handle): Declare new function
* fhandler.cc (fhandler_base::dup): Verify that dup'ed handle is not supposed
to be in use.
(fhandler_base::set_inheritance): Ditto.
(fhandler_base::fork_fixup): Ditto.
* fhandler_socket.cc (fhandler_socket::dup): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* net.cc (set_socket_inheritance): Ditto.
* pinfo.cc (pinfo_fixup_after_exec): Ditto.
* sigproc.cc (proc_subproc): Ditto.
(sig_send): Ditto.
* spawn.cc (spawn_guts): Ditto.
* thread.cc (pthread::init_mainthread): Ditto.
* pipe.cc (fhandler_pipe::close): Close read_state with ForceCloseHandle since
it was protected.
(fhandler_pipe::fixup_after_exec): Protect read_state handle.
(fhandler_pipe::dup): Correctly close open handles on error condition. Verify
that dup'ed handle is not supposed to be in use.
(fhandler_pipe::create): Protect read_state.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.2267.4.8&r2=1.2267.4.9
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/configure.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.26&r2=1.26.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/configure.in.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.28&r2=1.28.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.92&r2=1.92.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.h.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.75&r2=1.75.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.203.4.2&r2=1.203.4.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/debug.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.45&r2=1.45.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/debug.h.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.23&r2=1.23.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.134&r2=1.134.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.h.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.26&r2=1.26.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.193.4.2&r2=1.193.4.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.168.6.2&r2=1.168.6.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.115&r2=1.115.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_tty.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.125.6.1&r2=1.125.6.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/net.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.159&r2=1.159.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/perthread.h.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.17&r2=1.17.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/pinfo.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.107&r2=1.107.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/pipe.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.55&r2=1.55.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.175.4.3&r2=1.175.4.4
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/spawn.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.141&r2=1.141.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.314&r2=1.314.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&only_with_tag=cr-0x9e&r1=1.157&r2=1.157.4.1