summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_system.c')
-rw-r--r--lib/libpthread/thread/thr_system.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_system.c b/lib/libpthread/thread/thr_system.c
index 591562b..28976d3 100644
--- a/lib/libpthread/thread/thr_system.c
+++ b/lib/libpthread/thread/thr_system.c
@@ -38,11 +38,12 @@ __weak_reference(_system, system);
int
_system(const char *string)
{
+ struct pthread *curthread = _get_curthread();
int ret;
- _thread_enter_cancellation_point();
+ _thr_enter_cancellation_point(curthread);
ret = __system(string);
- _thread_leave_cancellation_point();
+ _thr_leave_cancellation_point(curthread);
return ret;
}
OpenPOWER on IntegriCloud