X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/125105d16c788398562ac03e91ce7a0dc0292492..12bff6dc1d8d9d0eb9a20570216f87387cac59e9:/unix/pty.c diff --git a/unix/pty.c b/unix/pty.c index dac67364..55282d2f 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -485,8 +485,8 @@ static void pty_uxsel_setup(void) * Also places the canonical host name into `realhost'. It must be * freed by the caller. */ -static char *pty_init(void *frontend, void **backend_handle, Config *cfg, - char *host, int port, char **realhost, int nodelay) +static const char *pty_init(void *frontend, void **backend_handle, Config *cfg, + char *host, int port, char **realhost, int nodelay) { int slavefd; pid_t pid, pgrp; @@ -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. */