From 624773957ffdd80c656ff12d7b0a59a879780e98 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 21 Jan 2012 16:41:31 +0100 Subject: [PATCH] docs: add exit values to watch.1 Signed-off-by: Sami Kerola --- watch.1 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/watch.1 b/watch.1 index 58aa372f..1e823403 100644 --- 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 -- 2.40.0