Mercurial > dropbear
diff svr-chansession.c @ 331:d6b8815a9b5e
progress towards exiting on writefd closure rather than
on process exit - dbclient hangs with scp, so requires work.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 11 Jun 2006 16:19:32 +0000 |
parents | 3eea61bd9993 |
children | 2eb5a8514905 e7c1a77d2921 |
line wrap: on
line diff
--- a/svr-chansession.c Sat Jun 10 16:39:40 2006 +0000 +++ b/svr-chansession.c Sun Jun 11 16:19:32 2006 +0000 @@ -67,8 +67,7 @@ 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 */