Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
534:0431915df79f | 537:7de2f22ea759 |
---|---|
69 if (pipe(ses.signal_pipe) < 0) { | 69 if (pipe(ses.signal_pipe) < 0) { |
70 dropbear_exit("signal pipe failed"); | 70 dropbear_exit("signal pipe failed"); |
71 } | 71 } |
72 setnonblocking(ses.signal_pipe[0]); | 72 setnonblocking(ses.signal_pipe[0]); |
73 setnonblocking(ses.signal_pipe[1]); | 73 setnonblocking(ses.signal_pipe[1]); |
74 | |
75 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[0]); | |
76 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[1]); | |
74 | 77 |
75 kexfirstinitialise(); /* initialise the kex state */ | 78 kexfirstinitialise(); /* initialise the kex state */ |
76 | 79 |
77 ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN); | 80 ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN); |
78 ses.transseq = 0; | 81 ses.transseq = 0; |