]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed type in daemonization code.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 22:31:34 +0000 (22:31 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 22:31:34 +0000 (22:31 +0000)
sysdep/unix/main.c

index 242cff0c39e1cadb0d754732a78e0505cdb61aa0..37c5e36ec3f4f4791999a79efb29c8cb1ce2fe4b 100644 (file)
@@ -396,8 +396,6 @@ main(int argc, char **argv)
     log_init_debug("");
   log_init(debug_flag);
 
-  log(L_INFO "Launching BIRD " BIRD_VERSION "...");
-
   DBG("Initializing.\n");
   resource_init();
   olock_init();
@@ -416,7 +414,7 @@ main(int argc, char **argv)
       pid_t pid = fork();
       if (pid < 0)
        die("fork: %m");
-      if (!pid)
+      if (pid)
        return 0;
       setsid();
     }