mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -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:
8
raw.c
8
raw.c
@ -217,8 +217,12 @@ static void raw_provide_logctx(void *handle, void *logctx)
|
||||
|
||||
static int raw_exitcode(void *handle)
|
||||
{
|
||||
/* Exit codes are a meaningless concept in the Raw protocol */
|
||||
return 0;
|
||||
Raw raw = (Raw) handle;
|
||||
if (raw->s != NULL)
|
||||
return -1; /* still connected */
|
||||
else
|
||||
/* Exit codes are a meaningless concept in the Raw protocol */
|
||||
return 0;
|
||||
}
|
||||
|
||||
Backend raw_backend = {
|
||||
|
Reference in New Issue
Block a user