diff options
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index 19c4f4a..b6544e6 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -67,7 +67,8 @@ static void get_termmodes(struct ChanSess *chansess); extern char** environ; static int sesscheckclose(struct Channel *channel) { - return channel->writefd == -1; + struct ChanSess *chansess = (struct ChanSess*)channel->typedata; + return chansess->exit.exitpid >= 0; } /* Handler for childs exiting, store the state for return to the client */ |