diff common-session.c @ 537:7de2f22ea759

- Add the signal pipe to maxfd
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Mar 2009 22:30:25 +0000
parents 0431915df79f
children 005530560594
line wrap: on
line diff
--- a/common-session.c	Sun Mar 01 16:15:57 2009 +0000
+++ b/common-session.c	Tue Mar 17 22:30:25 2009 +0000
@@ -71,6 +71,9 @@
 	}
 	setnonblocking(ses.signal_pipe[0]);
 	setnonblocking(ses.signal_pipe[1]);
+
+	ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[0]);
+	ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[1]);
 	
 	kexfirstinitialise(); /* initialise the kex state */