Fixed type in daemonization code.
This commit is contained in:
parent
fc0ca2d8e1
commit
4524331a3d
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue