aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-11-07 15:48:46 +0000
committerEd Maste <emaste@FreeBSD.org>2019-11-07 15:48:46 +0000
commit4a76bd99acb9018721cebc666bf4504be766250b (patch)
tree994f69044e36cc738668bdae58a727c66240c199 /libexec/rc
parent4011767f7684281b983c475d21e4e8a9c3e7f52a (diff)
downloadsrc-4a76bd99acb9018721cebc666bf4504be766250b.tar.gz
src-4a76bd99acb9018721cebc666bf4504be766250b.zip
Notes
Diffstat (limited to 'libexec/rc')
-rw-r--r--libexec/rc/rc.shutdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rc/rc.shutdown b/libexec/rc/rc.shutdown
index 0f60ffbad9cc..f8cdade4423a 100644
--- a/libexec/rc/rc.shutdown
+++ b/libexec/rc/rc.shutdown
@@ -69,12 +69,13 @@ _rcshutdown_watchdog=
if [ -n "$rcshutdown_timeout" ]; then
debug "Initiating watchdog timer."
sleep $rcshutdown_timeout && (
+ kill -KILL $$ >/dev/null 2>&1
_msg="$rcshutdown_timeout second watchdog"
_msg="$_msg timeout expired. Shutdown terminated."
logger -t rc.shutdown "$_msg"
+ echo
echo "$_msg"
date
- kill -KILL $$ >/dev/null 2>&1
) &
_rcshutdown_watchdog=$!
fi