X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rlogin.c;h=2f262300b441682c320b447cde29a4a216e060b2;hb=49204fe4107d8af3167fc940238f48113173fd92;hp=af3bd87633b4aeee1309f72c445bef4bfe2dc5a1;hpb=92db92af5a6b230e876a5f0f34a184612792847d;p=PuTTY.git diff --git a/rlogin.c b/rlogin.c index af3bd876..2f262300 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; @@ -302,6 +303,14 @@ static int rlogin_exitcode(void *handle) return 0; } +/* + * cfg_info for rlogin does nothing at all. + */ +static int rlogin_cfg_info(void *handle) +{ + return 0; +} + Backend rlogin_backend = { rlogin_init, rlogin_free, @@ -318,5 +327,6 @@ Backend rlogin_backend = { rlogin_provide_ldisc, rlogin_provide_logctx, rlogin_unthrottle, + rlogin_cfg_info, 1 };