git.samba.org
/
obnox
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2aaa64
)
scripts: Make script_log() use supplied message, stop logger from hanging
author
Martin Schwenke
<martin@meltin.net>
Fri, 4 Jan 2013 02:52:01 +0000
(13:52 +1100)
committer
Amitay Isaacs
<amitay@gmail.com>
Tue, 8 Jan 2013 04:18:47 +0000
(15:18 +1100)
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>
config/functions
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index ce54fc3a61c6fc2bdaa9db35bf9f11839d1aa2d4..8fbc079119791270a01584a5ffa7ac750597e23a 100755
(executable)
--- a/
config/functions
+++ b/
config/functions
@@
-110,7
+110,7
@@
script_log ()
esac
if $_using_syslog ; then
- logger -t "$_tag"
+ logger -t "$_tag"
"$*"
else
{
if [ -n "$*" ] ; then