--- rxvt-unicode/doc/rxvtc.1.man.in 2005/12/17 20:55:45 1.2 +++ rxvt-unicode/doc/rxvtc.1.man.in 2006/02/02 00:24:14 1.3 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3 +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 .\" .\" Standard preamble: .\" ======================================================================== @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "rxvt 1" -.TH rxvt 1 "2005-12-17" "5.9" "RXVT-UNICODE" +.TH rxvt 1 "2006-02-02" "7.5" "RXVT-UNICODE" .SH "NAME" @@RXVT_NAME@@c \- control the @@RXVT_NAME@@d daemon .SH "SYNOPSIS" @@ -148,6 +148,15 @@ \&\fB@@RXVT_NAME@@c\fR, too. Please note that all options are currently interpreted in the context of the daemon process, which makes a difference for options that specify a file descriptor (such as \fB\-pty\-fd\fR). +.SH "EXIT STATUS" +.IX Header "EXIT STATUS" +If everything went well, @@RXVT_NAME@@c returns with an exit status of \f(CW0\fR. +If contacting the daemon fails, it exits with the exit status \f(CW2\fR. In all other error +cases it returns with status \f(CW1\fR. +.PP +This can be used to implement auto-starting behaviour, by checking for an +exit status of \f(CW2\fR, running \f(CW\*(C`@@RXVT_NAME@@d \-f \-q\*(C'\fR and retrying the call +to @@RXVT_NAME@@c. .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" All environment variables of the current process will be made available