removed IPSECPOLICY compile option

This commit is contained in:
Andreas Steffen
2007-01-29 07:42:30 +00:00
parent e43641e712
commit f527c5a288
2 changed files with 3 additions and 80 deletions
+3 -18
View File
@@ -507,19 +507,6 @@ main(int argc, char **argv)
}
}
#ifdef IPSECPOLICY
/* create info socket. */
{
err_t ugh = init_info_socket();
if (ugh != NULL)
{
fprintf(stderr, "pluto: %s", ugh);
exit_pluto(1);
}
}
#endif
/* If not suppressed, do daemon fork */
if (fork_desired)
@@ -571,12 +558,10 @@ main(int argc, char **argv)
int i;
for (i = getdtablesize() - 1; i >= 0; i--) /* Bad hack */
if ((!log_to_stderr || i != 2)
#ifdef IPSECPOLICY
&& i != info_fd
#endif
&& i != ctl_fd)
{
if ((!log_to_stderr || i != 2) && i != ctl_fd)
close(i);
}
/* make sure that stdin, stdout, stderr are reserved */
if (open("/dev/null", O_RDONLY) != 0)