overhaul pthread cancellation
[musl] / src / select / poll.c
index caceeba..f1e73e8 100644 (file)
@@ -4,9 +4,5 @@
 
 int poll(struct pollfd *fds, nfds_t n, int timeout)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = syscall(SYS_poll, fds, n, timeout);
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_poll, fds, n, timeout);
 }