diff options
author | kib <kib@FreeBSD.org> | 2012-11-13 12:52:31 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-11-13 12:52:31 +0000 |
commit | 1409e8df208328336c5d9a8943bd8b7f1d42d12e (patch) | |
tree | 9144bfce419068b77a3142b83020e456fa156551 /sys/sys/proc.h | |
parent | 974b82f77de16221515a7323e98f7e2514ff4e13 (diff) | |
download | FreeBSD-src-1409e8df208328336c5d9a8943bd8b7f1d42d12e.zip FreeBSD-src-1409e8df208328336c5d9a8943bd8b7f1d42d12e.tar.gz |
Add the wait6(2) system call. It takes POSIX waitid()-like process
designator to select a process which is waited for. The system call
optionally returns siginfo_t which would be otherwise provided to
SIGCHLD handler, as well as extended structure accounting for child
and cumulative grandchild resource usage.
Allow to get the current rusage information for non-exited processes
as well, similar to Solaris.
The explicit WEXITED flag is required to wait for exited processes,
allowing for more fine-grained control of the events the waiter is
interested in.
Fix the handling of siginfo for WNOWAIT option for all wait*(2)
family, by not removing the queued signal state.
PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r-- | sys/sys/proc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 567cb63..ff92050 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -885,8 +885,7 @@ int proc_getenvv(struct thread *td, struct proc *p, struct sbuf *sb); void procinit(void); void proc_linkup0(struct proc *p, struct thread *td); void proc_linkup(struct proc *p, struct thread *td); -void proc_reap(struct thread *td, struct proc *p, int *status, int options, - struct rusage *rusage); +void proc_reap(struct thread *td, struct proc *p, int *status, int options); void proc_reparent(struct proc *child, struct proc *newparent); struct pstats *pstats_alloc(void); void pstats_fork(struct pstats *src, struct pstats *dst); |