summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-28 10:57:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-28 11:12:23 +1000
commitba53d850252165ba96e7abc6e7dd0648b40ee37b (patch)
tree7763e6c67e73cc216c32793bac922a08f9fbc7a6 /man
parent8d0d011cda37f5202ee0de76ef1ada8643624919 (diff)
syndaemon: document exit codes and change them to fall into categories.
Changing pid file creation failure to same exit code that fork() failure uses. Changing XRECORD init failure to unique code. This way clients can trap exit code 4 and re-start syndaemon without the -R flag. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'man')
-rw-r--r--man/syndaemon.man20
1 files changed, 20 insertions, 0 deletions
diff --git a/man/syndaemon.man b/man/syndaemon.man
index f850941..a9d69b0 100644
--- a/man/syndaemon.man
+++ b/man/syndaemon.man
@@ -66,6 +66,26 @@ the keyboard state.
.TP
\fBDISPLAY\fP
Specifies the X server to contact.
+.SH EXIT CODES
+If syndaemon exists with a return code other than 0, the error encountered
+is as below.
+.LP
+.TP
+\fBExit code 1
+Invalid commandline argument.
+.LP
+.TP
+\fBExit code 2
+The connection to the X sever could not be established or no touchpad device
+could be found.
+.LP
+.TP
+\fBExit code 3
+The fork into daemon mode failed or the pid file could not be created.
+.LP
+.TP
+\fBExit code 4
+XRECORD requested but not available or usable on the server.
.SH "CAVEATS"
.LP
It doesn't make much sense to connect to a remote X server, because