diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-12-27 00:58:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-12-27 01:01:57 +0100 |
commit | b9fe5b6eadc913ead80531905aeafa51ed0d4ccd (patch) | |
tree | 92866f4a59fe8c852f9ab10611acc63e47e56fa9 /tmpfs/tmpfs.c | |
parent | d7964b08211f5221e73400ed36093d44f9455fff (diff) | |
download | hurd-b9fe5b6eadc913ead80531905aeafa51ed0d4ccd.tar.gz hurd-b9fe5b6eadc913ead80531905aeafa51ed0d4ccd.tar.bz2 hurd-b9fe5b6eadc913ead80531905aeafa51ed0d4ccd.zip |
Add proc_waitid
proc_wait assumes that the caller always wants WEXITED, but waitid()
does not. The new proc_waitid RPC requires the caller to specify at
least one of WEXITED, WSTOPPED, or WCONTINUED.
* hurd/process.defs (proc_waitid): New RPC.
* hurd/process_reply.defs (proc_waitid): New RPC.
* hurd/process_request.defs (proc_waitid): New RPC.
* proc/proc.h (struct proc): Add p_continued field.
* proc/wait.c (WCONTINUED, WEXITED): Define if not already defined.
(S_proc_wait): Rename implementation to S_proc_waitid, and modify to
stop assuming WEXITED. Add support for WCONTINUED.
(S_proc_wait): Reimplement by just calling S_proc_waitid with an
additional WEXITED.
(proc_mark_stop): Clear p_continued.
(proc_mark_cont): Set p_continued, clear p_waited, wake any waiting
parent.
Diffstat (limited to 'tmpfs/tmpfs.c')
0 files changed, 0 insertions, 0 deletions