From c41ba5f041dd5ebeebd3987525d9efcd83b3b1ae Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Sun, 6 Feb 2005 14:00:57 +0000 Subject: [PATCH] Remove code, inherited from ipacctctl, which sets socket to non-blocking mode, since this introduces problems on SMP. --- usr.sbin/flowctl/flowctl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c index 851b0afb0405..7efdf92ea302 100644 --- a/usr.sbin/flowctl/flowctl.c +++ b/usr.sbin/flowctl/flowctl.c @@ -43,7 +43,6 @@ static const char rcs_id[] = #include #include -#include #include #include #include @@ -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)");