starter: (De-)Initialize logging when forking.

This commit is contained in:
Tobias Brunner 2012-06-04 12:55:05 +02:00
parent 402ae88af9
commit 18a3741042
1 changed files with 2 additions and 0 deletions

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: