Log more messages using logger().

This commit is contained in:
Guus Sliepen 2012-10-14 15:37:24 +02:00
parent b234304b66
commit 40ed0c07dd
5 changed files with 120 additions and 78 deletions

View file

@ -204,8 +204,7 @@ bool detach(void) {
if(do_detach) {
#ifndef HAVE_MINGW
if(daemon(0, 0)) {
fprintf(stderr, "Couldn't detach from terminal: %s",
strerror(errno));
logger(DEBUG_ALWAYS, LOG_ERR, "Couldn't detach from terminal: %s", strerror(errno));
return false;
}
#else