about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-09-17 13:19:28 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-09-17 13:19:28 +0200
commit8fd9f3e185676e070aa267fac708cc5376e0cef8 (patch)
treee9b456865b55aa442ac24d06df363469a61cb534
parent8076cb8d573236c3cbdbc8f04b35aff76da8762d (diff)
downloadextrace-8fd9f3e185676e070aa267fac708cc5376e0cef8.tar.gz
extrace-8fd9f3e185676e070aa267fac708cc5376e0cef8.tar.xz
extrace-8fd9f3e185676e070aa267fac708cc5376e0cef8.zip
README: include both manpages
-rw-r--r--Makefile4
-rw-r--r--README50
2 files changed, 52 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3302b89..50b7247 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ MANDIR=$(PREFIX)/share/man
 
 all: $(ALL)
 
-README: extrace.1
-	mandoc -Tutf8 $< | col -bx >$@
+README: extrace.1 pwait.1
+	mandoc -Tutf8 $^ | col -bx >$@
 
 cap: $(ALL)
 	sudo setcap cap_net_admin+ep extrace cap_net_admin+ep pwait
diff --git a/README b/README
index ca55be0..9b54cae 100644
--- a/README
+++ b/README
@@ -71,3 +71,53 @@ LICENSE
      extrace is licensed under the terms of the GPLv2.
 
 Void Linux                       June 19, 2018                      Void Linux
+
+------------------------------------------------------------------------------
+
+PWAIT(1)                    General Commands Manual                   PWAIT(1)
+
+NAME
+     pwait – wait for processes to terminate
+
+SYNOPSIS
+     pwait [-v] [-c] pid ...
+
+DESCRIPTION
+     pwait waits until each of the given processes has terminated.
+
+     The options are as follows:
+
+     -v      Print the exit status when each process terminates.
+
+     -c      Return 111 if any process exited non-successfully.
+
+EXIT STATUS
+     The pwait utility exits 0 on success, and >0 if an error occurs.
+
+     Invalid pids elicit a warning message but are otherwise ignored.
+
+ERRORS
+     Check these prerequisites if you see this error:
+
+           binding sk_nl error: Operation not permitted
+
+     pwait requires special permissions to run, either root or the Linux
+     CAP_NET_ADMIN capability.
+
+     pwait only works on Linux kernels with the kernel options
+
+           CONFIG_CONNECTOR=y
+           CONFIG_PROC_EVENTS=y
+
+SEE ALSO
+     extrace(1), kill(1), pkill(1), ps(1), wait(1)
+
+AUTHORS
+     Leah Neukirchen <leah@vuxu.org>
+
+     Built upon code from FreeBSD pwait written by Jilles Tjoelker.
+
+LICENSE
+     pwait is licensed under the terms of the GPLv2.
+
+Void Linux                    September 17, 2018                    Void Linux