-#ifndef DEBUG
- if (fork())
- exit(0);
- for (cc = 0; cc < 10; cc++)
- (void) close(cc);
- (void) open("/", 0);
- (void) dup2(0, 1);
- (void) dup2(0, 2);
- { int t = open("/dev/tty", 2);
- if (t >= 0) {
- ioctl(t, TIOCNOTTY, (char *)0);
- (void) close(t);
- }
- }
-#endif
- if (tracing)
- traceon("/etc/routerlog");
-
- /*
- * We use two sockets. One for which outgoing
- * packets are routed and for which they're not.
- * The latter allows us to delete routing table
- * entries in the kernel for network interfaces
- * attached to our host which we believe are down
- * while still polling it to see when/if it comes
- * back up. With the new ipc interface we'll be
- * able to specify ``don't route'' as an option
- * to send, but until then we utilize a second port.
- */