overhaul pthread cancellation
[musl] / src / process / waitpid.c
index 5e0320f..f75e31e 100644 (file)
@@ -4,10 +4,5 @@
 
 pid_t waitpid(pid_t pid, int *status, int options)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = syscall(SYS_wait4, pid, status, options, 0);
-       if (r<0) CANCELPT_TRY;
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_wait4, pid, status, options, 0);
 }