Move code into new stop_watchdog()
authorkn <kn@openbsd.org>
Fri, 15 Mar 2024 16:29:32 +0000 (16:29 +0000)
committerkn <kn@openbsd.org>
Fri, 15 Mar 2024 16:29:32 +0000 (16:29 +0000)
commit45656f751dde3d2a00cf38aeeb8d3332cf5c582c
tree6c7fe143ca9b5a82b09849fe97f2e3b6c1d647eb
parentdc766d1646f55423aa32a8bec248ef1e4cadee97
Move code into new stop_watchdog()

We have {reset,start}_watchdog() which are only used in unattended upgrade
code, but stopping the background timer is done inline for all upgrades,
incl. interactive ones.

Relocate it out of the very end of do_upgrade() right after its only caller
and limit it to unattended upgrades to match where/how the timer is started.

OK afresh1
distrib/miniroot/install.sub