about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--extrace.13
-rw-r--r--pwait.157
2 files changed, 59 insertions, 1 deletions
diff --git a/extrace.1 b/extrace.1
index f5c4d04..54f5596 100644
--- a/extrace.1
+++ b/extrace.1
@@ -67,7 +67,8 @@ CONFIG_PROC_EVENTS=y
 .Ed
 .Sh SEE ALSO
 .Xr fatrace 1 ,
-.Xr ps 1
+.Xr ps 1 ,
+.Xr pwait 1
 .Sh AUTHORS
 .An Christian Neukirchen Aq Mt chneukirchen@gmail.com
 .Pp
diff --git a/pwait.1 b/pwait.1
new file mode 100644
index 0000000..3c6d52c
--- /dev/null
+++ b/pwait.1
@@ -0,0 +1,57 @@
+.Dd June 13, 2016
+.Dt PWAIT 1
+.Os
+.Sh NAME
+.Nm pwait
+.Nd wait for processes to terminate
+.Sh SYNOPSIS
+.Nm
+.Op Fl v
+.Op Fl c
+.Ar pid\ ...
+.Sh DESCRIPTION
+.Nm pwait
+waits until each of the given processes has terminated.
+.Pp
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl v
+Print the exit status when each process terminates.
+.It Fl c
+Return 111 if any process exited non-successfully.
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh ERRORS
+Check these prerequisites if you see this error:
+.Bd -literal -offset Ds
+binding sk_nl error: Operation not permitted
+.Ed
+.Pp
+.Nm
+requires special permissions to run, either root or the Linux
+.Li "CAP_NET_ADMIN"
+capability.
+.Pp
+.Nm
+only works on Linux kernels with the kernel options
+.Bd -literal -offset Ds
+CONFIG_CONNECTOR=y
+CONFIG_PROC_EVENTS=y
+.Ed
+.Sh SEE ALSO
+.Xr extrace 1 ,
+.Xr kill 1 ,
+.Xr pkill 1 ,
+.Xr ps 1 ,
+.Xr wait 1
+.Sh AUTHORS
+.An Christian Neukirchen Aq Mt chneukirchen@gmail.com
+.Pp
+Built upon code from
+.Fx
+.Nm
+written by Jilles Tjoelker.
+.Sh LICENSE
+.Nm
+is licensed under the terms of the GPLv2.