Mercurial > dropbear
comparison svr-agentfwd.c @ 109:2e9d1f29c50f
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
and 69b007796063cb5f042be7cca2d479e90db869c3
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 27 Aug 2004 14:39:01 +0000 |
parents | 10f4d3319780 |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
108:10f4d3319780 | 109:2e9d1f29c50f |
---|---|
71 if (listen(fd, 20) < 0) { | 71 if (listen(fd, 20) < 0) { |
72 goto fail; | 72 goto fail; |
73 } | 73 } |
74 | 74 |
75 /* set non-blocking */ | 75 /* set non-blocking */ |
76 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { | 76 setnonblocking(fd); |
77 goto fail; | |
78 } | |
79 | 77 |
80 /* pass if off to listener */ | 78 /* pass if off to listener */ |
81 chansess->agentlistener = new_listener( &fd, 1, 0, chansess, | 79 chansess->agentlistener = new_listener( &fd, 1, 0, chansess, |
82 agentaccept, NULL); | 80 agentaccept, NULL); |
83 | 81 |