diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-11 04:00:04 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-11 04:00:04 +0000 |
commit | 1d380f593ae54513419a7e7f31817fc23a5e69b9 (patch) | |
tree | 6997ee23c02f85f89c36ab4e7d971cd174c68869 /winsup/cygwin/exceptions.cc | |
parent | ea01c7f5d25779a88d6476da8b7f780379bc0c05 (diff) | |
download | cygnal-1d380f593ae54513419a7e7f31817fc23a5e69b9.tar.gz cygnal-1d380f593ae54513419a7e7f31817fc23a5e69b9.tar.bz2 cygnal-1d380f593ae54513419a7e7f31817fc23a5e69b9.zip |
* cygthread.h (cygthread::stack_ptr): New element.
(cygthread::detach): Accept a "wait_for_signal" argument.
(cygthread::terminate_thread): New function.
* cygthread.cc (cygthread::stub): Set stack pointer argument.
(cygthread::terminate_thread): New function. Forcibly terminate thread.
(cygthread::detach): Optionally wait for signals and kill thread when signal
arrives.
* exceptions.cc (signal_exit): Set signal_arrived prior to exiting to wake up
anything blocking on signals.
* fhandler.h (fhandler_base::set_r_no_interrupt): Change to accept bool
argument.
(fhandler_pipe::ready_for_read): Declare.
* pipe.cc (pipeargs): New structure.
(read_pipe): New thread stub wrapper for normal pipe read.
(fhandler_pipe::read): Modify to call reader in a cygthread, terminating on
signal, as appropriate.
* select.cc (fhandler_pipe::ready_for_read): Define new function.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 380697eb0..bbd5518d0 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1117,6 +1117,7 @@ signal_exit (int rc) TerminateProcess (hExeced, rc); sigproc_printf ("about to call do_exit (%x)", rc); + (void) SetEvent (signal_arrived); do_exit (rc); } |