diff svr-chansession.c @ 396:e7c1a77d2921

disapproval of revision '2186a678a5f79ef432f6593a10e3e13df2a313d5'
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Feb 2007 08:09:55 +0000
parents d6b8815a9b5e
children 2908122e9eed 59c7938af2bd
line wrap: on
line diff
--- a/svr-chansession.c	Sun Jun 11 16:19:32 2006 +0000
+++ b/svr-chansession.c	Sat Feb 03 08:09:55 2007 +0000
@@ -67,7 +67,8 @@
 extern char** environ;
 
 static int sesscheckclose(struct Channel *channel) {
-	return channel->writefd == -1;
+	struct ChanSess *chansess = (struct ChanSess*)channel->typedata;
+	return chansess->exit.exitpid >= 0;
 }
 
 /* Handler for childs exiting, store the state for return to the client */