From: Andre Noll Date: Mon, 26 Sep 2016 16:44:39 +0000 (+0200) Subject: daemon: Improve "daemonizing" log message. X-Git-Tag: v0.5.7~16^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cf1b5fd816348658393b7c2583b67560b17f30a2;p=paraslash.git daemon: Improve "daemonizing" log message. The function name "daemonize" is shown anyway, so let's print the path to the log file instead. --- diff --git a/daemon.c b/daemon.c index 7c625bbe..392d2b4e 100644 --- a/daemon.c +++ b/daemon.c @@ -178,7 +178,8 @@ void daemonize(bool parent_waits) pid_t pid; int null; - PARA_INFO_LOG("daemonizing\n"); + PARA_INFO_LOG("subsequent log messages go to %s\n", me->logfile_name? + me->logfile_name : "/dev/null"); pid = fork(); if (pid < 0) goto err;