diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-06-11 16:19:32 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-06-11 16:19:32 +0000 |
commit | e8fa3ce478681a356d2882e29550a6a63fed7b31 (patch) | |
tree | e05126102c0f106ea1572a73e5b84d935129fda5 /svr-chansession.c | |
parent | c9d3c0bc90f21886e0b78595c53e748256e299bf (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.c | 3 |
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 */ |