Mercurial > dropbear
diff svr-chansession.c @ 402:173a5f89666c channel-fix
propagate from branch 'au.asn.ucc.matt.dropbear' (head b1dd3b94e60a07a176dba2b035ac79968595990a)
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head fc77c3dea87a7c0f374e738d055f0b455495cbc3)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:22:58 +0000 |
parents | 59c7938af2bd a5bca950120d |
children | a01c0c8e543a |
line wrap: on
line diff
--- a/svr-chansession.c Sat Feb 03 08:20:34 2007 +0000 +++ b/svr-chansession.c Sat Feb 03 08:22:58 2007 +0000 @@ -59,7 +59,6 @@ struct ChanSess * chansess); static void send_msg_chansess_exitsignal(struct Channel * channel, struct ChanSess * chansess); -static int sesscheckclose(struct Channel *channel); static void get_termmodes(struct ChanSess *chansess); @@ -68,7 +67,7 @@ static int sesscheckclose(struct Channel *channel) { struct ChanSess *chansess = (struct ChanSess*)channel->typedata; - return chansess->exit.exitpid >= 0; + return chansess->exit.exitpid != -1; } /* Handler for childs exiting, store the state for return to the client */