diff options
author | Christopher Faylor <me@cgf.cx> | 2012-06-19 00:31:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-06-19 00:31:15 +0000 |
commit | af5cd145835d35519af02d0d226f67eb777e4945 (patch) | |
tree | d31ebb964550d4e73c3f0d63d3fa0d1b502e44f4 /winsup/cygwin/select.cc | |
parent | 88fbcb5afd6d7d687387b22509037d99e2aa07ff (diff) | |
download | cygnal-af5cd145835d35519af02d0d226f67eb777e4945.tar.gz cygnal-af5cd145835d35519af02d0d226f67eb777e4945.tar.bz2 cygnal-af5cd145835d35519af02d0d226f67eb777e4945.zip |
* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
handling of call_signal_handler.
* cygwait.h (WAIT_CANCELED): Move here and redefine.
(WAIT_SIGNALED): Ditto.
* thread.h (WAIT_CANCELED): Delete.
(WAIT_SIGNALED): Ditto.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 0186af733..d98e13255 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -312,7 +312,7 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds, select_record *s = &start; DWORD m = 0; - w4[m++] = signal_arrived; /* Always wait for the arrival of a signal. */ + set_thread_waiting (w4[m++]); if ((w4[m] = pthread::get_cancel_event ()) != NULL) m++; |