diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2017-05-25 13:25:55 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2017-05-25 14:10:20 +0200 |
commit | 1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5 (patch) | |
tree | da8503a85b357faba6836e10c3f91394628abb02 /rc.d/init.d/functions | |
parent | 4b0db77c17ce8c29709587bdcc88927a9d5ee651 (diff) | |
download | initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.gz initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.bz2 initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.xz initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.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/init.d/functions')
-rw-r--r-- | rc.d/init.d/functions | 4 |
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 |