summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-06-11 16:19:32 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-06-11 16:19:32 +0000
commite8fa3ce478681a356d2882e29550a6a63fed7b31 (patch)
treee05126102c0f106ea1572a73e5b84d935129fda5 /svr-chansession.c
parentc9d3c0bc90f21886e0b78595c53e748256e299bf (diff)
progress towards exiting on writefd closure rather than
on process exit - dbclient hangs with scp, so requires work. --HG-- extra : convert_revision : 2186a678a5f79ef432f6593a10e3e13df2a313d5
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 */