comparison svr-x11fwd.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 b855bf63766c
children 0cfba3034be5
comparison
equal deleted inserted replaced
108:10f4d3319780 109:2e9d1f29c50f
73 if (listen(fd, 20) < 0) { 73 if (listen(fd, 20) < 0) {
74 goto fail; 74 goto fail;
75 } 75 }
76 76
77 /* set non-blocking */ 77 /* set non-blocking */
78 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { 78 setnonblocking(fd);
79 goto fail;
80 }
81 79
82 /* listener code will handle the socket now. 80 /* listener code will handle the socket now.
83 * No cleanup handler needed, since listener_remove only happens 81 * No cleanup handler needed, since listener_remove only happens
84 * from our cleanup anyway */ 82 * from our cleanup anyway */
85 chansess->x11listener = new_listener( &fd, 1, 0, chansess, x11accept, NULL); 83 chansess->x11listener = new_listener( &fd, 1, 0, chansess, x11accept, NULL);