X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f85e6f6edb2c9415bc10bd2015479d72ea8c5ae2..786ba75e61df3c1c4a723117652c62259358e9e2:/rlogin.c diff --git a/rlogin.c b/rlogin.c index af3bd876..06c8b12b 100644 --- a/rlogin.c +++ b/rlogin.c @@ -39,6 +39,7 @@ static int rlogin_closing(Plug plug, const char *error_msg, int error_code, if (rlogin->s) { sk_close(rlogin->s); rlogin->s = NULL; + notify_remote_exit(rlogin->frontend); } if (error_msg) { /* A socket error has occurred. */ @@ -100,7 +101,7 @@ static void rlogin_sent(Plug plug, int bufsize) static const char *rlogin_init(void *frontend_handle, void **backend_handle, Config *cfg, char *host, int port, char **realhost, - int nodelay) + int nodelay, int keepalive) { static const struct plug_function_table fn_table = { rlogin_closing, @@ -149,7 +150,7 @@ static const char *rlogin_init(void *frontend_handle, void **backend_handle, sfree(buf); } rlogin->s = new_connection(addr, *realhost, port, 1, 0, - nodelay, (Plug) rlogin, cfg); + nodelay, keepalive, (Plug) rlogin, cfg); if ((err = sk_socket_error(rlogin->s)) != NULL) return err;