]> git.ipfire.org Git - thirdparty/systemd.git/commit
shutdown: explicitly close watchdog with disarm=false before we destroy watchdog...
authorLennart Poettering <lennart@poettering.net>
Wed, 29 May 2024 15:40:28 +0000 (17:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 May 2024 15:42:02 +0000 (17:42 +0200)
commit79645d7376a5173c1a09172aaf2fa30e6c0958dd
tree437eddcbe5c785b1ba41710ed8d08562c5c76aed
parentbbd3832e6bac0c945cfb2632b872e4bccb111f2b
shutdown: explicitly close watchdog with disarm=false before we destroy watchdog resources

Otherwise we'll close the device disarming it as side-effect of
watchdog_free_device(), which is not intended. Hence, let's close the fd
first explicitly leaving it armed.

Fixes: #33075
src/shutdown/shutdown.c