X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/10705014ce38c846c2314823550beb0371c5fc6c..0da1a7905bb03d899c94b3d3d9b25c9e61698390:/raw.c diff --git a/raw.c b/raw.c index 53a8fc3a..9eb2286c 100644 --- a/raw.c +++ b/raw.c @@ -217,8 +217,12 @@ static void raw_provide_logctx(void *handle, void *logctx) static int raw_exitcode(void *handle) { - /* Exit codes are a meaningless concept in the Raw protocol */ - return 0; + Raw raw = (Raw) handle; + if (raw->s != NULL) + return -1; /* still connected */ + else + /* Exit codes are a meaningless concept in the Raw protocol */ + return 0; } Backend raw_backend = {