newlib/winsup
Christopher Faylor 67483cb2cd * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state
appropriately.
* pinfo.cc (pinfo::exit): Always call sigproc_terminate here.  Rely on
sigproc_terminate to signal signal thread to handle eventual process exit.
* sigproc.cc (no_signals_available): Change criteria for determining if this
process can handle signals to itself.
(my_sendsig): New variable.  Copy of my sendsig handle.
(proc_can_be_signalled): Don't send signals if exit code is set.
(sigproc_terminate): Use and set exit_state appropriately to determine when to
do anything.  Send __SIGEXIT to self to control process exit.
(sig_send): Use my_sendsig for sending signals.  Don't call
proc_can_be_signalled for myself since the criteria is now different for
sending signals to myself.
(wait_sig): Copy myself->sendsig to my_sendsig for future use.  Exit signal
loop when __SIGEXIT is received.  Wait for main thread to exit and use its exit
status to actually exit process.
* sigproc.h (__SIGEXIT): New enum.
* dcrt0.cc (alloc_stack): Eliminate superfluous "return;".
* debug.cc (add_handle): Ditto.
* devices.in (device::parse): Ditto.
* dtable.cc (dtable::vfork_parent_restore): Ditto.
(dtable::vfork_child_fixup): Ditto.
* environ.cc (parse_options): Ditto.
* errno.cc (seterrno_from_win_error): Ditto.
* exceptions.cc (sig_handle_tty_stop): Ditto.
(set_signal_mask): Ditto.
* fhandler.cc (fhandler_base::read): Ditto.
(fhandler_base::operator delete): Ditto.
(fhandler_base::seekdir): Ditto.
(fhandler_base::rewinddir): Ditto.
* fhandler_console.cc (fhandler_console::read): Ditto.
(fhandler_console::fixup_after_exec): Ditto.
* sigproc.cc (sigproc_init): Ditto.
(sigproc_terminate): Ditto.

* devices.cc: Regenerate.
2005-09-13 17:08:54 +00:00
..
cygserver * cygserver.cc (main): Call wincap.init() earlier to avoid a NULL dereference. 2005-08-08 19:46:48 +00:00
cygwin * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
doc 2005-08-26 Brian Dessent <brian@dessent.net> 2005-08-27 04:53:15 +00:00
mingw * mingwex/fe*.c: Revert previous changes. 2005-08-25 08:39:54 +00:00
subauth * Makefile.in: Comment out install for now. 2001-10-12 20:02:41 +00:00
testsuite * winsup.api/pthread/cancel2.c: Use explicit initializer for mutex. 2005-06-11 04:59:53 +00:00
utils * regtool.cc: Extend copyright-years. 2005-09-08 09:24:41 +00:00
w32api * include/reason.h [_WIN32_WINNT >= 0x0501] 2005-09-08 13:55:46 +00:00
CYGWIN_LICENSE Change location. 2003-01-13 21:11:19 +00:00
ChangeLog * Makefile.common: Add -dD to options when creating preprocess files. 2005-03-23 03:22:27 +00:00
Makefile.common update copyright 2005-07-26 00:38:54 +00:00
Makefile.in * Makefile.in: Make cygserver depending on cygwin. 2003-11-23 09:02:26 +00:00
configure * configure.in: Make --use-server the default. 2003-11-20 19:31:52 +00:00
configure.in * configure.in: Make --use-server the default. 2003-11-20 19:31:52 +00:00