diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/include/syscall.h | 3 | ||||
-rw-r--r-- | src/lib/libkogata/syscall.c | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/include/syscall.h b/src/lib/include/syscall.h index c26a805..ddc0e18 100644 --- a/src/lib/include/syscall.h +++ b/src/lib/include/syscall.h @@ -49,7 +49,6 @@ bool bind_fd(pid_t pid, fd_t new_fd, fd_t fd); bool proc_exec(pid_t pid, const char* file); bool proc_status(pid_t pid, proc_status_t *s); bool proc_kill(pid_t pid, proc_status_t *s); -void proc_wait(pid_t pid, proc_status_t *s); -void proc_wait_any(proc_status_t *s); +void proc_wait(pid_t pid, bool wait, proc_status_t *s); /* vim: set ts=4 sw=4 tw=0 noet :*/ diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index 6f37c47..4b31ab3 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -153,11 +153,8 @@ bool proc_status(pid_t pid, proc_status_t *s) { bool proc_kill(pid_t pid, proc_status_t *s) { return call(SC_PROC_KILL, pid, (uint32_t)s, 0, 0, 0); } -void proc_wait(pid_t pid, proc_status_t *s) { - call(SC_PROC_WAIT, pid, (uint32_t)s, 0, 0, 0); -} -void proc_wait_any(proc_status_t *s) { - call(SC_PROC_WAIT_ANY, (uint32_t)s, 0, 0, 0, 0); +void proc_wait(pid_t pid, bool block, proc_status_t *s) { + call(SC_PROC_WAIT, pid, block, (uint32_t)s, 0, 0); } |