# HG changeset patch # User Matt Johnston # Date 1237329025 0 # Node ID 7de2f22ea759b5f16280cc0dabe2c6ce4d722917 # Parent 0431915df79f722599b9c1514cf2b50d0b1ed113 - Add the signal pipe to maxfd diff -r 0431915df79f -r 7de2f22ea759 common-session.c --- 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 */