X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/10705014ce38c846c2314823550beb0371c5fc6c..0da1a7905bb03d899c94b3d3d9b25c9e61698390:/rlogin.c diff --git a/rlogin.c b/rlogin.c index c3ef25c9..8e73ec91 100644 --- a/rlogin.c +++ b/rlogin.c @@ -284,9 +284,12 @@ static void rlogin_provide_logctx(void *handle, void *logctx) static int rlogin_exitcode(void *handle) { - /* Rlogin rlogin = (Rlogin) handle; */ - /* If we ever implement RSH, we'll probably need to do this properly */ - return 0; + Rlogin rlogin = (Rlogin) handle; + if (rlogin->s != NULL) + return -1; /* still connected */ + else + /* If we ever implement RSH, we'll probably need to do this properly */ + return 0; } Backend rlogin_backend = {