From cf1b5fd816348658393b7c2583b67560b17f30a2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 26 Sep 2016 18:44:39 +0200 Subject: [PATCH] daemon: Improve "daemonizing" log message. The function name "daemonize" is shown anyway, so let's print the path to the log file instead. --- daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5