mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
pterm.c now relies on backend `exitcode' functions returning <0 when
the session is still connected, and not returning an exit code until after it's finished. [originally from svn r3033]
This commit is contained in:
9
telnet.c
9
telnet.c
@ -996,9 +996,12 @@ static void telnet_provide_logctx(void *handle, void *logctx)
|
||||
|
||||
static int telnet_exitcode(void *handle)
|
||||
{
|
||||
/* Telnet telnet = (Telnet) handle; */
|
||||
/* Telnet doesn't transmit exit codes back to the client */
|
||||
return 0;
|
||||
Telnet telnet = (Telnet) handle;
|
||||
if (telnet->s != NULL)
|
||||
return -1; /* still connected */
|
||||
else
|
||||
/* Telnet doesn't transmit exit codes back to the client */
|
||||
return 0;
|
||||
}
|
||||
|
||||
Backend telnet_backend = {
|
||||
|
Reference in New Issue
Block a user