diff options
author | Peter Åstrand <astrand@cendio.com> | 2009-09-02 13:03:43 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.com> | 2009-09-02 13:03:43 +0000 |
commit | 058ee33be3fbc52cbf04883c4a98acb71c947640 (patch) | |
tree | cf73d1d79927f59909885489ec53248281ae7381 /doc | |
parent | 5c67800d158277bc2215048102d3f7dad773bb21 (diff) | |
download | rdesktop-058ee33be3fbc52cbf04883c4a98acb71c947640.zip |
Clean up and document the return values. Trying to solve a number of issues:
* The current return values have been selected pretty much without any
thought. Basically, the value 1 is used for all different kinds of
errors, except for a corner case where the server doesn't send a
RDP_PDU_DEACTIVATE in combination with a few special "reasons", where
the value 2 is used instead.
* rdesktop will currently also return with 2 if the user is closing
the rdesktop window, the same error as many other fatal errors, which
is somewhat strange.
* The main principle of my patch is to utilize more of the available
256 return codes. We are currently only using 3 values out of
256. This is bad; rdesktop should expose more information to the
caller about error conditions if it can.
Besides using the standardized exit codes for generic errors such as
EX_USAGE for command line usage errors, I've also exposed the
"extended disconnect reasons" from RDP. This allows for, for example,
to be able to distinguish between a logoff and a disconnect.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1510 423420c4-83ab-492f-b58f-81f9feb106b5
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rdesktop.1 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/rdesktop.1 b/doc/rdesktop.1 index 68f2139..9850b2e 100644 --- a/doc/rdesktop.1 +++ b/doc/rdesktop.1 @@ -220,6 +220,64 @@ Use RDP version 4. .BR "-5" Use RDP version 5 (default). .PP +.SH "EXIT VALUES" +.PP +.IP "\fB0\fP" +RDP session terminated normally +.IP "\fB1\fP" +Server initiated disconnect +.IP "\fB2\fP" +Server initiated logoff +.IP "\fB3\fP" +Server idle timeout reached +.IP "\fB4\fP" +Server logon timeout reached +.IP "\fB5\fP" +The session was replaced +.IP "\fB6\fP" +The server is out of memory +.IP "\fB7\fP" +The server denied the connection +.IP "\fB8\fP" +The server denied the connection for security reason +.IP "\fB16\fP" +Internal licensing error +.IP "\fB17\fP" +No license server available +.IP "\fB18\fP" +No valid license available +.IP "\fB19\fP" +Invalid licensing message +.IP "\fB20\fP" +Hardware id doesn't match software license +.IP "\fB21\fP" +Client license error +.IP "\fB22\fP" +Network error during licensing protocol +.IP "\fB23\fP" +Licensing protocol was not completed +.IP "\fB24\fP" +Incorrect client license enryption +.IP "\fB25\fP" +Can't upgrade license +.IP "\fB26\fP" +The server is not licensed to accept remote connections +.IP "\fB62\fP" +The local client window was closed +.IP "\fB63\fP" +Some other, unknown error occured +.IP "\fB64\fP" +Command line usage error +.IP "\fB69\fP" +A service or resource (such as memory) is unavailable +.IP "\fB70\fP" +An internal software error has been detected +.IP "\fB71\fP" +Operating system error +.IP "\fB76\fP" +Protocol error or unable to connect to remote host. + +.PP .SH LINKS Main website of rdesktop .br |