projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix fputwc return value
[oweals/musl.git]
/
src
/
process
/
waitid.c
diff --git
a/src/process/waitid.c
b/src/process/waitid.c
index b1e5e9b19013998cbcc044246d9a0fd9138af272..4fa7c024df4f221a9e859e1b3b8b125f863c16c7 100644
(file)
--- a/
src/process/waitid.c
+++ b/
src/process/waitid.c
@@
-1,7
+1,13
@@
#include <sys/wait.h>
#include "syscall.h"
#include <sys/wait.h>
#include "syscall.h"
+#include "libc.h"
int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
{
int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
{
- return syscall(SYS_waitid, type, id, info, options, 0);
+ int r;
+ CANCELPT_BEGIN;
+ r = syscall(SYS_waitid, type, id, info, options, 0);
+ if (r<0) CANCELPT_TRY;
+ CANCELPT_END;
+ return r;
}
}