mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
starter: (De-)Initialize logging when forking.
This commit is contained in:
parent
402ae88af9
commit
18a3741042
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user