projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
process
/
waitpid.c
diff --git
a/src/process/waitpid.c
b/src/process/waitpid.c
index 5e0320f7b0bb9f2a935d61b73031425a92dddeee..f75e31ef24674df14252163f858aac6e6ddf8ed2 100644
(file)
--- a/
src/process/waitpid.c
+++ b/
src/process/waitpid.c
@@
-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);
}