diff svr-chansession.c @ 397:2908122e9eed channel-fix

disapproval of revision '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Feb 2007 08:10:09 +0000
parents e7c1a77d2921
children a5bca950120d
line wrap: on
line diff
--- a/svr-chansession.c	Sat Feb 03 08:09:55 2007 +0000
+++ b/svr-chansession.c	Sat Feb 03 08:10:09 2007 +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 */