diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-27 14:39:01 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-27 14:39:01 +0000 |
commit | 69282617fd9c40395d57edf0ed6587def6131de7 (patch) | |
tree | 193af27642c02413e0d25619897554a664bb58f9 /svr-agentfwd.c | |
parent | 51a74b47995cfe24ef190b7e254f768eb92735f5 (diff) |
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
and 69b007796063cb5f042be7cca2d479e90db869c3
--HG--
extra : convert_revision : 5d0dfaa8c0ee6c728a3b4f0f0855199ba729db83
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r-- | svr-agentfwd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c index 2674138..60c23f7 100644 --- a/svr-agentfwd.c +++ b/svr-agentfwd.c @@ -73,9 +73,7 @@ int agentreq(struct ChanSess * chansess) { } /* set non-blocking */ - if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { - goto fail; - } + setnonblocking(fd); /* pass if off to listener */ chansess->agentlistener = new_listener( &fd, 1, 0, chansess, |