]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
starter: (De-)Initialize logging when forking.
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Jun 2012 10:55:05 +0000 (12:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 5 Jun 2012 07:22:16 +0000 (09:22 +0200)
src/starter/starter.c

index fb44cad26e934be00961eee97741631e26ffbee8..0cec936c3462ed74d40653133752a754968688b4 100644 (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: