summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2013-05-31 19:01:57 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2013-05-31 19:01:57 +0000
commit167475d2342ef87069fb78ddf8841e0337e52eca (patch)
treec6e88c1e4a89ff3d1d7347418463c9b11be1561f /lib/libc
parent6876a9b65463a3e60c39ec3b324f3bc358829162 (diff)
On NOTE_EXIT event of EVFILT_PROC, store the exit status in kn_data.
ok guenther tedu deraadt
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/kqueue.29
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 55266bff364..a678aeed158 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kqueue.2,v 1.25 2012/04/12 14:25:57 deraadt Exp $
+.\" $OpenBSD: kqueue.2,v 1.26 2013/05/31 19:01:56 yasuoka Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.18 2001/02/14 08:48:35 guido Exp $
.\"
-.Dd $Mdocdate: April 12 2012 $
+.Dd $Mdocdate: May 31 2013 $
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -368,6 +368,10 @@ The events to monitor are:
.Bl -tag -width XXNOTE_TRACKERR
.It Dv NOTE_EXIT
The process has exited.
+The exit status will be stored in
+.Va data
+in the same format as the status set by
+.Xr wait 2 .
.It Dv NOTE_FORK
The process has called
.Fn fork .
@@ -505,6 +509,7 @@ The specified process to attach to does not exist.
.Xr read 2 ,
.Xr select 2 ,
.Xr sigaction 2 ,
+.Xr wait 2 ,
.Xr write 2 ,
.Xr signal 3
.Sh HISTORY