diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 22:31:34 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 22:31:34 +0000 |
commit | 4524331a3d758106f4ffa6a54a60aeae45341789 (patch) | |
tree | 2ebc8aa425a0408a5e7a3ebe9934146e31f45c66 | |
parent | fc0ca2d8e1ab6a71a81f5f12c04f02d670d22348 (diff) |
Fixed type in daemonization code.
-rw-r--r-- | sysdep/unix/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 242cff0c..37c5e36e 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -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(); } |