1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

scripts: Make script_log() use supplied message, stop logger from hanging

When using syslog any provided message arguments are ignored and not
passed to logger.  This means that logger blocks waiting on stdin.
That's bad.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 50abf597cefe6f8ea2a2ff7694bf84641344a9b1)
This commit is contained in:
Martin Schwenke 2013-01-04 13:52:01 +11:00 committed by Amitay Isaacs
parent 095fac9491
commit 4f622fe9fb

View File

@ -110,7 +110,7 @@ script_log ()
esac
if $_using_syslog ; then
logger -t "$_tag"
logger -t "$_tag" "$*"
else
{
if [ -n "$*" ] ; then