summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.subr
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2021-11-06 11:02:54 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2021-11-06 11:02:54 +0000
commit108a74891f037f7aebcbae1353c0a6da55484c82 (patch)
treea2a7a8bb579fe8d6444242423d47b46562d9dfba /etc/rc.d/rc.subr
parent737402941fe9d6337a09f8be46a607112f7020cf (diff)
Drop uneeded sleep.
Diffstat (limited to 'etc/rc.d/rc.subr')
-rw-r--r--etc/rc.d/rc.subr10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 3845208a631..a22858899ce 100644
--- a/etc/rc.d/rc.subr
+++ b/etc/rc.d/rc.subr
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.subr,v 1.138 2021/11/06 10:38:04 ajacoutot Exp $
+# $OpenBSD: rc.subr,v 1.139 2021/11/06 11:02:53 ajacoutot Exp $
#
# Copyright (c) 2010, 2011, 2014-2021 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -180,10 +180,10 @@ _rc_wait() {
sleep 1
_i=$((_i+1))
done
- if [ X"$1" = X"stop" ]; then # KILL the process
- sleep 1
- _rc_do rc_check && _rc_do _rc_sendsig KILL
- fi
+
+ # KILL the process
+ [ X"$1" = X"stop" ] && _rc_do rc_check && _rc_do _rc_sendsig KILL
+
return 1
}