summaryrefslogtreecommitdiffhomepage
path: root/svr-x11fwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-27 14:39:01 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-27 14:39:01 +0000
commit69282617fd9c40395d57edf0ed6587def6131de7 (patch)
tree193af27642c02413e0d25619897554a664bb58f9 /svr-x11fwd.c
parent51a74b47995cfe24ef190b7e254f768eb92735f5 (diff)
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
and 69b007796063cb5f042be7cca2d479e90db869c3 --HG-- extra : convert_revision : 5d0dfaa8c0ee6c728a3b4f0f0855199ba729db83
Diffstat (limited to 'svr-x11fwd.c')
-rw-r--r--svr-x11fwd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/svr-x11fwd.c b/svr-x11fwd.c
index 75e94b8..45c9060 100644
--- a/svr-x11fwd.c
+++ b/svr-x11fwd.c
@@ -75,9 +75,7 @@ int x11req(struct ChanSess * chansess) {
}
/* set non-blocking */
- if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
- goto fail;
- }
+ setnonblocking(fd);
/* listener code will handle the socket now.
* No cleanup handler needed, since listener_remove only happens