Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-01-14 22:55:42 +0300
committerThomas Pfaff <tpfaff@gmx.net>2003-01-14 22:55:42 +0300
commit3457ce4d88c7f3c9eb4cf2167ba8287108ba3f5b (patch)
tree0ac8f6cc46e325acbcac5489c931ee4b49510832
parent2673d5f209d94b396007d52e82139fe406fa0420 (diff)
Apply handle_sigsuspend patch
-rw-r--r--winsup/cygwin/ChangeLog8
-rw-r--r--winsup/cygwin/exceptions.cc3
-rw-r--r--winsup/cygwin/thread.cc6
3 files changed, 12 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index feda97865..bc40e20a5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-10 Thomas Pfaff <tpfaff@gmx.net>
+
+ * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call.
+ Wait for signal and cancellation event.
+ * thread.cc: Update list of cancellation points.
+
2003-01-14 David Huang <davehzhr@hotmail.com>
* fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
@@ -107,7 +113,7 @@
(__pthread_mutex_unlock): Return pthread_mutex::UnLock
errorcode.
(__pthread_mutex_destroy): Call pthread_mutex::Destroy to
- destroy mutex.
+ destroy mutex.
(__pthread_mutexattr_settype): Allow errorchecking and recursive
types.
* thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define.
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
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 4f4f1f051..2d154b4a2 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -458,7 +458,7 @@ msgsnd ()
msync ()
nanosleep ()
open ()
-pause ()
+*pause ()
poll ()
pread ()
pthread_cond_timedwait ()
@@ -472,8 +472,8 @@ read ()
readv ()
select ()
*sem_wait ()
-sigpause ()
-sigsuspend ()
+*sigpause ()
+*sigsuspend ()
sigtimedwait ()
sigwait ()
sigwaitinfo ()