From cabc2d54e5b39c38c85f0671d7f347213ed1cfc5 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 6 Nov 2021 11:02:53 +0000 Subject: [PATCH] Drop uneeded sleep. --- etc/rc.d/rc.subr | 10 +++++----- 1 file 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 # Copyright (c) 2010, 2011 Ingo Schwarze @@ -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 } -- 2.20.1