From: Mathieu Parent Date: Thu, 27 Aug 2009 21:36:07 +0000 (+0200) Subject: Fix bashisms in samba event script. X-Git-Tag: tevent-0.9.20~348^2~1815^2~5 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=e12faf771cd1d671b0a032077bf83a65c94aefd8;p=samba.git Fix bashisms in samba event script. Signed-off-by: Michael Adam (This used to be ctdb commit 0310a6b17d6167c46482a07c6cd96bcabda6ffbc) --- diff --git a/ctdb/config/events.d/50.samba b/ctdb/config/events.d/50.samba index 54cf9ceb611..b413a13a3eb 100755 --- a/ctdb/config/events.d/50.samba +++ b/ctdb/config/events.d/50.samba @@ -73,7 +73,7 @@ testparm_background_update() { while [ $timeleft -gt 0 ]; do timeleft=$(($timeleft - 1)) # see if the process still exists - kill -0 $pid > /dev/null 2>&1 || { + /bin/kill -0 $pid > /dev/null 2>&1 || { # it doesn't exist, grab its exit status wait $pid [ $? = 0 ] || { @@ -99,7 +99,7 @@ testparm_background_update() { done # it took more than 10 seconds - kill it off rm -f "${tmpfile}" - kill -9 "$pid" > /dev/null 2>&1 + /bin/kill -9 "$pid" > /dev/null 2>&1 echo "50.samba: timed out updating smbconf cache in background" exit 1 ) &