mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-13 22:58:42 +00:00
Fixed type in daemonization code.
This commit is contained in:
parent
fc0ca2d8e1
commit
4524331a3d
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user