chiark / gitweb /
server/: Issue `WARN' messages for (most) initialization errors.
[tripe] / server / tripe.c
index aa225da77fbdc205039188f92d09d11f1ce7264d..93d40b9bb6f40130ea7807e9146a50159b7d20bf 100644 (file)
@@ -323,8 +323,10 @@ int main(int argc, char *argv[])
   km_init(kr_priv, kr_pub, tag_priv);
   kx_init();
   if (f & f_daemon) {
-    if (daemonize())
-      die(EXIT_FAILURE, "couldn't become a daemon: %s", strerror(errno));
+    if (daemonize()) {
+      a_warn("SERVER", "daemon-error", "?ERRNO", A_END);
+      exit(EXIT_FAILURE);
+    }
     a_daemon();
     a_switcherr();
   }