starter: (De-)Initialize logging when forking.

This commit is contained in:
Tobias Brunner
2012-06-05 09:22:16 +02:00
parent 402ae88af9
commit 18a3741042
+2
View File
@@ -450,6 +450,7 @@ int main (int argc, char **argv)
{
int fnull;
close_log();
closefrom(3);
fnull = open("/dev/null", O_RDWR);
@@ -462,6 +463,7 @@ int main (int argc, char **argv)
}
setsid();
init_log("ipsec_starter");
}
break;
case -1: