0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Fixed type in daemonization code.

This commit is contained in:
Martin Mares 2000-05-08 22:31:34 +00:00
parent fc0ca2d8e1
commit 4524331a3d

View File

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