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:
parent
095fac9491
commit
4f622fe9fb
@ -110,7 +110,7 @@ script_log ()
|
||||
esac
|
||||
|
||||
if $_using_syslog ; then
|
||||
logger -t "$_tag"
|
||||
logger -t "$_tag" "$*"
|
||||
else
|
||||
{
|
||||
if [ -n "$*" ] ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user