Commit 4524331a authored by Martin Mareš's avatar Martin Mareš
Browse files

Fixed type in daemonization code.

parent fc0ca2d8
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment