From 553f1c7dfe6d2e85424da9f31e188ace7ea7ebf1 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 13 Jun 2016 15:39:27 +0200 Subject: add pwait.1 --- extrace.1 | 3 ++- pwait.1 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 pwait.1 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. -- cgit 1.4.1