O_NONBLOCK is set with F_SETFL

Index: usr.sbin/faithd/tcp.c
===================================================================
RCS file: /cvs/src/usr.sbin/faithd/tcp.c,v
retrieving revision 1.12
diff -N -u -p usr.sbin/faithd/tcp.c
--- usr.sbin/faithd/tcp.c       8 Sep 2002 01:20:15 -0000       1.12
+++ usr.sbin/faithd/tcp.c       20 Jan 2013 22:17:13 -0000
@@ -206,7 +206,7 @@ relay(int s_rcv, int s_snd, const char *service, int d
        FD_ZERO(&readfds);
        FD_ZERO(&writefds);
        FD_ZERO(&exceptfds);
-       fcntl(s_snd, F_SETFD, O_NONBLOCK);
+       fcntl(s_snd, F_SETFL, O_NONBLOCK);
        oreadfds = readfds; owritefds = writefds; oexceptfds = exceptfds;
        if (s_rcv >= FD_SETSIZE)
                exit_failure("descriptor too big");

Reply via email to