- if (Config.Port.snmp) {
- enter_suid();
- fd = comm_open(SOCK_STREAM,
- 0,
- Config.Addrs.snmp_incoming,
- SQUID_SNMP_PORT,
- COMM_NONBLOCKING,
- "SNMP Socket");
- leave_suid();
- if (fd < 0)
- continue;
- comm_listen(fd);
- commSetSelect(fd, COMM_SELECT_READ, snmpAccept, NULL, 0);
- debug(1, 1) ("Accepting SNMP connections on port %d, FD %d.\n",
- (int) SQUID_SNMP_PORT , fd);
+ if (Config.Port.snmp) {
+ enter_suid();
+ fd = comm_open(SOCK_STREAM,
+ 0,
+ Config.Addrs.snmp_incoming,
+ SQUID_SNMP_PORT,
+ COMM_NONBLOCKING,
+ "SNMP Socket");
+ leave_suid();
+ if (fd < 0)
+ continue;
+ comm_listen(fd);
+ commSetSelect(fd, COMM_SELECT_READ, snmpAccept, NULL, 0);
+ debug(1, 1) ("Accepting SNMP connections on port %d, FD %d.\n",
+ (int) SQUID_SNMP_PORT, fd);