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