]> granicus.if.org Git - procps-ng/commitdiff
docs: add exit values to watch.1
authorSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 15:41:31 +0000 (16:41 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 15:41:31 +0000 (16:41 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
watch.1

diff --git a/watch.1 b/watch.1
index 58aa372f04347e99675ada0e3944bda0620475cf..1e82340387535f5c284b837f367b3f59721ff30b 100644 (file)
--- a/watch.1
+++ b/watch.1
@@ -140,6 +140,39 @@ as it can to catch up from a previous executions running longer than
 (for example,
 .B netstat
 taking ages on a DNS lookup).
+.SH "EXIT STATUS"
+.PP
+.RS
+.PD 0
+.TP
+.B 0
+Success.
+.TP
+.B 1
+Various failures.
+.TP
+.B 2
+Forking the process to watch failed.
+.TP
+.B 3
+Replacing child process stdout with write side pipe failed.
+.TP
+.B 4
+Command execution failed.
+.TP
+.B 5
+Closign child process write pipe failed.
+.TP
+.B 7
+IPC pipe creation failed.
+.TP
+.B 8
+Getting child process return value with
+.BR waitpid (2)
+failed, or command exited up on error.
+.TP
+.B other
+The watch will propagate command exit status as child exit status.
 .SH AUTHORS
 The original
 .B watch