1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Close On Exit and Warn On Close fixes: (a) pty_reconfig needs to

remember changes in COE so it knows whether to print a message, and
(b) once the session has already ended, Warn On Close should shut up.

[originally from svn r3102]
This commit is contained in:
Simon Tatham
2003-04-12 08:27:03 +00:00
parent c16bde1741
commit bc4e41154a
2 changed files with 8 additions and 6 deletions

View File

@ -623,21 +623,23 @@ static char *pty_init(void *frontend, void **backend_handle, Config *cfg,
return NULL;
}
/*
* Stub routine (we don't have any need to reconfigure this backend).
*/
static void pty_reconfig(void *handle, Config *cfg)
{
/*
* We don't have much need to reconfigure this backend, but
* unfortunately we do need to pick up the setting of Close On
* Exit so we know whether to give a `terminated' message.
*/
pty_cfg = *cfg; /* structure copy */
}
/*
* Stub routine (never called in pterm
* Stub routine (never called in pterm).
*/
static void pty_free(void *handle)
{
}
/*
* Called to send data down the pty.
*/