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 23:19:27 +0300
committerThomas Pfaff <tpfaff@gmx.net>2003-01-14 23:19:27 +0300
commite14328f4f72baf7e66e99413b71d948a8303677f (patch)
tree9e0a7306f8c207412f0e3b551603bb8ac1c5ce26
parent17f422866a5fecc599d8861c1fff895c1d82720b (diff)
Apply system_cancel patch
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/syscalls.cc2
-rw-r--r--winsup/cygwin/thread.cc4
3 files changed, 9 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c41395a01..daf2b0d4f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 8c0561e79..cdb6792a9 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1374,6 +1374,8 @@ done:
extern "C" int
system (const char *cmdstring)
{
+ pthread_testcancel ();
+
if (check_null_empty_str_errno (cmdstring))
return -1;
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 649a3571b..e252cbb9f 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -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 ()