summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-06-13 15:39:27 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-06-13 15:39:27 +0200
commit553f1c7dfe6d2e85424da9f31e188ace7ea7ebf1 (patch)
tree0986efe320258c34d2a508b7b40bf5665b6b60a0
parente3d8a5b740ab8ad5836e06bc94e0a3ade65caff4 (diff)
downloadextrace-553f1c7dfe6d2e85424da9f31e188ace7ea7ebf1.tar.gz
extrace-553f1c7dfe6d2e85424da9f31e188ace7ea7ebf1.tar.xz
extrace-553f1c7dfe6d2e85424da9f31e188ace7ea7ebf1.zip
add pwait.1
-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.