X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=rlogin.c;h=06c8b12b4561047dbec931cecd5f0ec6af003c44;hb=69303f2d3e815470863808456be37f55947c9522;hp=af3bd87633b4aeee1309f72c445bef4bfe2dc5a1;hpb=92db92af5a6b230e876a5f0f34a184612792847d;p=PuTTY.git 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;