mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove code, inherited from ipacctctl, which sets socket to non-blocking
mode, since this introduces problems on SMP.
This commit is contained in:
parent
5658abbabd
commit
c41ba5f041
1 changed files with 1 additions and 9 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
Loading…
Reference in a new issue