[PATCH] fix logging if HAL run in daemon mode

Danny Kukawka danny.kukawka at web.de
Mon Oct 24 13:32:41 PDT 2005


this patch fix logging for HAL in daemon mode. For this I added a new command 
line option '--use-syslog' to write log messages to syslog 
(/var/log/messages) instead of stderr.

I moved the first debug message in hald.c to reduce double check the same 
variable and removed unneed empty function(-call) in logger.* and hald.c to 
reduce useless code.

Please review.



 ChangeLog     |   13 +++++++++++++
 hald/hald.c   |   23 +++++++++++++++++------
 hald/hald.h   |    1 +
 hald/logger.c |   46 +++++++++++++++++++++++++++++++++++++---------
 hald/logger.h |    6 ++++--
 5 files changed, 72 insertions(+), 17 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-logger_for_daemon.diff
Type: text/x-diff
Size: 7366 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051024/2ac015ad/hal-fix-logger_for_daemon.bin

More information about the hal mailing list