changeset 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 7c8cdc5d2269
files common-session.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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 */