Files
musl/src/process/waitpid.c

14 lines
242 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include <sys/wait.h>
#include "syscall.h"
#include "libc.h"
2011-02-12 00:22:29 -05:00
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;
2011-02-12 00:22:29 -05:00
}