projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07cb15
)
daemon: empty logfile means same as NULL
author
Marko Kreen
<markokr@gmail.com>
Mon, 29 Nov 2010 11:41:43 +0000
(13:41 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Mon, 29 Nov 2010 11:43:12 +0000
(13:43 +0200)
usual/daemon.c
patch
|
blob
|
blame
|
history
diff --git
a/usual/daemon.c
b/usual/daemon.c
index 7275b2552138719592fb4146155cfa5e5b779c64..471a4c07957174f57c3e5b8a7f419fe27120313c 100644
(file)
--- a/
usual/daemon.c
+++ b/
usual/daemon.c
@@
-179,7
+179,7
@@
void daemonize(const char *pidfile, bool go_background)
if (!go_background)
return;
- if (
!cf_logfile && !cf_syslog_ident
)
+ if (
(!cf_logfile || !cf_logfile[0]) && !cf_syslog
)
fatal("daemon needs logging configured");
/* send stdin, stdout, stderr to /dev/null */