OSDN Git Service

Apply system_cancel patch
authortpfaff <tpfaff>
Tue, 14 Jan 2003 20:19:26 +0000 (20:19 +0000)
committertpfaff <tpfaff>
Tue, 14 Jan 2003 20:19:26 +0000 (20:19 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc
winsup/cygwin/thread.cc

index c41395a..daf2b0d 100644 (file)
@@ -1,5 +1,10 @@
 2003-01-14  Thomas Pfaff  <tpfaff@gmx.net>
 
+       * syscalls.cc (system): Add pthread_testcancel call.
+       * thread.cc: Update list of cancellation points.
+
+2003-01-14  Thomas Pfaff  <tpfaff@gmx.net>
+
        * wait.cc: Include thread.h
        (wait4): Add pthread_testcancel call.
        Wait for child process and cancellation event.
index 8c0561e..cdb6792 100644 (file)
@@ -1374,6 +1374,8 @@ done:
 extern "C" int
 system (const char *cmdstring)
 {
+  pthread_testcancel ();
+
   if (check_null_empty_str_errno (cmdstring))
     return -1;
 
index 649a357..e252cbb 100644 (file)
@@ -464,7 +464,7 @@ pread ()
 pthread_cond_timedwait ()
 pthread_cond_wait ()
 *pthread_join ()
-pthread_testcancel ()
+*pthread_testcancel ()
 putmsg ()
 putpmsg ()
 pwrite ()
@@ -478,7 +478,7 @@ sigtimedwait ()
 sigwait ()
 sigwaitinfo ()
 *sleep ()
-system ()
+*system ()
 tcdrain ()
 *usleep ()
 *wait ()