summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_select.c')
-rw-r--r--lib/libkse/thread/thr_select.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_select.c b/lib/libkse/thread/thr_select.c
index a4f4a15..6714af0 100644
--- a/lib/libkse/thread/thr_select.c
+++ b/lib/libkse/thread/thr_select.c
@@ -49,11 +49,12 @@ int
__select(int numfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
struct timeval *timeout)
{
+ struct pthread *curthread = _get_curthread();
int ret;
- _thread_enter_cancellation_point();
+ _thr_enter_cancellation_point(curthread);
ret = __sys_select(numfds, readfds, writefds, exceptfds, timeout);
- _thread_leave_cancellation_point();
+ _thr_leave_cancellation_point(curthread);
return ret;
}
OpenPOWER on IntegriCloud