aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-05-25 13:25:55 +0200
committerDee'Kej <deekej@linuxmail.org>2017-10-31 12:36:19 +0100
commit3e524c51a3438cbfc92a5ad19614b3bf8fbd4000 (patch)
tree1eb2ddff78f99fac8c843de947a13cae1cb9dc70 /rc.d
parent40eb870afeb4c984e1b9035100e65acb03812ac0 (diff)
downloadinitscripts-3e524c51a3438cbfc92a5ad19614b3bf8fbd4000.tar
initscripts-3e524c51a3438cbfc92a5ad19614b3bf8fbd4000.tar.gz
initscripts-3e524c51a3438cbfc92a5ad19614b3bf8fbd4000.tar.bz2
initscripts-3e524c51a3438cbfc92a5ad19614b3bf8fbd4000.tar.xz
initscripts-3e524c51a3438cbfc92a5ad19614b3bf8fbd4000.zip
Replace usleep(1) calls with sleep(1) calls
The time units had to be manually converted from microseconds to seconds. Hopefully this was done right.
Diffstat (limited to 'rc.d')
-rw-r--r--rc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index b2a29190..08d7e0f4 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -154,7 +154,7 @@ __kill_pids_term_kill() {
[ -z "$kill_list" ] && return 0
kill -TERM $kill_list >/dev/null 2>&1
- usleep 100000
+ sleep 0.1
kill_list=$(__kill_pids_term_kill_checkpids $base_stime $kill_list)
if [ -n "$kill_list" ] ; then
@@ -166,7 +166,7 @@ __kill_pids_term_kill() {
done
if [ -n "$kill_list" ] ; then
kill -KILL $kill_list >/dev/null 2>&1
- usleep 100000
+ sleep 0.1
kill_list=$(__kill_pids_term_kill_checkpids $base_stime $kill_list)
fi
fi