mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +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_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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user