diff options
author | glebius <glebius@FreeBSD.org> | 2005-02-06 14:00:57 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-02-06 14:00:57 +0000 |
commit | de15cfcd1d928d995f6be111d0c21e4e56900cd3 (patch) | |
tree | b5e74b9c179253ec1f12f44e0fecb54bc1e52810 /usr.sbin/flowctl/flowctl.c | |
parent | 63a6fd20b6ad0bc5bb3276c8249af0b9fead2ec9 (diff) | |
download | FreeBSD-src-de15cfcd1d928d995f6be111d0c21e4e56900cd3.zip FreeBSD-src-de15cfcd1d928d995f6be111d0c21e4e56900cd3.tar.gz |
Remove code, inherited from ipacctctl, which sets socket to non-blocking
mode, since this introduces problems on SMP.
Diffstat (limited to 'usr.sbin/flowctl/flowctl.c')
-rw-r--r-- | usr.sbin/flowctl/flowctl.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c index 851b0af..7efdf92 100644 --- a/usr.sbin/flowctl/flowctl.c +++ b/usr.sbin/flowctl/flowctl.c @@ -43,7 +43,6 @@ static const char rcs_id[] = #include <arpa/inet.h> #include <err.h> -#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -78,7 +77,7 @@ char ng_nodename[NG_PATHLEN + 1]; int main(int argc, char **argv) { - int flags, c; + int c; char sname[NG_NODESIZ]; int rcvbuf = SORCVBUF_SIZE; char *ng_name; @@ -108,13 +107,6 @@ main(int argc, char **argv) if (NgMkSockNode(sname, &cs, NULL) == -1) err(1, "NgMkSockNode"); - /* set control socket nonblocking */ - if ((flags = fcntl(cs, F_GETFL, 0)) == -1) - err(1, "fcntl(F_GETFL)"); - flags |= O_NONBLOCK; - if (fcntl(cs, F_SETFL, flags) == -1) - err(1, "fcntl(F_SETFL)"); - /* set receive buffer size */ if (setsockopt(cs, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(int)) == -1) err(1, "setsockopt(SOL_SOCKET, SO_RCVBUF)"); |