diff --git a/common-session.c b/common-session.c index 3663534..1348da2 100644 --- a/common-session.c +++ b/common-session.c @@ -71,6 +71,9 @@ void common_session_init(int sock_in, int sock_out, char* remotehost) { } 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 */