diff options
Diffstat (limited to 'lib/libkse/thread/thr_system.c')
-rw-r--r-- | lib/libkse/thread/thr_system.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_system.c b/lib/libkse/thread/thr_system.c index 591562b..28976d3 100644 --- a/lib/libkse/thread/thr_system.c +++ b/lib/libkse/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; } |