From 1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 25 May 2017 13:25:55 +0200 Subject: 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. --- rc.d/init.d/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d/functions') 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 -- cgit v1.2.1