- Add the signal pipe to maxfd

--HG--
extra : convert_revision : 0a8dfaa3e5365a2004db2b55895e11f65b5cefcc
This commit is contained in:
Matt Johnston 2009-03-17 22:30:25 +00:00
parent ff763e4005
commit 061565865c

View File

@ -72,6 +72,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 */
ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN);