summaryrefslogtreecommitdiff
path: root/src/process/waitid.c
blob: 4fa7c024df4f221a9e859e1b3b8b125f863c16c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/wait.h>
#include "syscall.h"
#include "libc.h"

int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
{
	int r;
	CANCELPT_BEGIN;
	r = syscall(SYS_waitid, type, id, info, options, 0);
	if (r<0) CANCELPT_TRY;
	CANCELPT_END;
	return r;
}