OSDN Git Service

Apply handle_sigsuspend patch
authortpfaff <tpfaff>
Tue, 14 Jan 2003 19:55:40 +0000 (19:55 +0000)
committertpfaff <tpfaff>
Tue, 14 Jan 2003 19:55:40 +0000 (19:55 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/exceptions.cc
winsup/cygwin/thread.cc

index feda978..bc40e20 100644 (file)
@@ -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
        (__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.
index e73775f..877b02d 100644 (file)
@@ -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
 
index 4f4f1f0..2d154b4 100644 (file)
@@ -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 ()