From 3457ce4d88c7f3c9eb4cf2167ba8287108ba3f5b Mon Sep 17 00:00:00 2001 From: Thomas Pfaff Date: Tue, 14 Jan 2003 19:55:42 +0000 Subject: Apply handle_sigsuspend patch --- winsup/cygwin/exceptions.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index e73775f66..877b02d58 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -576,7 +576,8 @@ handle_sigsuspend (sigset_t tempmask) // interested in through. sigproc_printf ("old mask %x, new mask %x", oldmask, tempmask); - WaitForSingleObject (signal_arrived, INFINITE); + pthread_testcancel (); + pthread::cancelable_wait (signal_arrived, INFINITE); set_sig_errno (EINTR); // Per POSIX -- cgit v1.2.3