]> Zhao Yanbai Git Server - minix.git/commit
PM: add support for wait4(2) 03/3203/2
authorDavid van Moolenbroek <david@minix3.org>
Mon, 28 Sep 2015 11:11:55 +0000 (11:11 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 29 Sep 2015 18:15:28 +0000 (18:15 +0000)
commit29346ab0430c05d7b81aa329f371aa4eaf0ded06
tree0e7928b940d53129ed4d5dd65df5b6b606de066b
parentbc2d75fa05289d971b2669f2f8593daa1524eb58
PM: add support for wait4(2)

This patch adds support for the wait4 system call, and with that the
wait3 call as well.  The implementation is absolutely minimal: only
user and system times of the exited child are returned (with all other
rusage fields left zero), and there is no support for tracers.  Still,
this should cover the main use cases of wait4.

Change-Id: I7a04589a8423a23990ab39aa38e85d535556743a
17 files changed:
lib/libc/gen/Makefile.inc
minix/include/minix/callnr.h
minix/include/minix/ipc.h
minix/lib/libc/gen/wait.c [deleted file]
minix/lib/libc/gen/waitpid.c [deleted file]
minix/lib/libc/sys/Makefile.inc
minix/lib/libc/sys/wait4.c [new file with mode: 0644]
minix/lib/libminc/Makefile
minix/servers/pm/forkexit.c
minix/servers/pm/misc.c
minix/servers/pm/mproc.h
minix/servers/pm/proto.h
minix/servers/pm/table.c
minix/servers/pm/trace.c
minix/servers/pm/utility.c
minix/tests/test75.c
minix/usr.bin/trace/service/pm.c