projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b865ea3
)
daemon: Improve "daemonizing" log message.
author
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 26 Sep 2016 16:44:39 +0000
(18:44 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 26 Sep 2016 16:47:27 +0000
(18:47 +0200)
The function name "daemonize" is shown anyway, so let's print the
path to the log file instead.
daemon.c
patch
|
blob
|
history
diff --git
a/daemon.c
b/daemon.c
index 7c625bbea9d84c5ac9b37a22253346576cbb7183..392d2b4e02f654126fe69249390a9caad429dbc5 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-178,7
+178,8
@@
void daemonize(bool parent_waits)
pid_t pid;
int null;
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;
pid = fork();
if (pid < 0)
goto err;