diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-09 00:31:34 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-09 00:31:34 +0200 |
commit | 4524331a3d758106f4ffa6a54a60aeae45341789 (patch) | |
tree | 2ebc8aa425a0408a5e7a3ebe9934146e31f45c66 /sysdep/unix | |
parent | fc0ca2d8e1ab6a71a81f5f12c04f02d670d22348 (diff) | |
download | bird-4524331a3d758106f4ffa6a54a60aeae45341789.tar bird-4524331a3d758106f4ffa6a54a60aeae45341789.zip |
Fixed type in daemonization code.
Diffstat (limited to 'sysdep/unix')
-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 242cff0..37c5e36 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(); } |