aboutsummaryrefslogtreecommitdiff
path: root/sys/bsm
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-11-13 12:52:31 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-11-13 12:52:31 +0000
commitf13b5a0f0198974e979d1cedd9759db46201bf42 (patch)
tree9144bfce419068b77a3142b83020e456fa156551 /sys/bsm
parent84590fd8e5b7c3cb9c6e9f01792f8395ae8ef8c2 (diff)
downloadsrc-f13b5a0f0198974e979d1cedd9759db46201bf42.tar.gz
src-f13b5a0f0198974e979d1cedd9759db46201bf42.zip
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
Notes
Notes: svn path=/head/; revision=242958
Diffstat (limited to 'sys/bsm')
-rw-r--r--sys/bsm/audit_kevents.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/bsm/audit_kevents.h b/sys/bsm/audit_kevents.h
index f4f77a55163b..3eb2e3abb7d7 100644
--- a/sys/bsm/audit_kevents.h
+++ b/sys/bsm/audit_kevents.h
@@ -602,6 +602,7 @@
#define AUE_PDKILL 43198 /* FreeBSD. */
#define AUE_PDGETPID 43199 /* FreeBSD. */
#define AUE_PDWAIT 43200 /* FreeBSD. */
+#define AUE_WAIT6 43201 /* FreeBSD. */
/*
* Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the