mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
core: disarm shutdown watchdog if we fail to set timeout
Better safe than sorry, if drivers are stupid, and reset immediately on
device closing if the timeout could not be initialized.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777735
(cherry picked from commit c2cc6b9aef)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
c17e9668d6
commit
32283b968a
+2
-2
@@ -2036,8 +2036,8 @@ finish:
|
||||
/* If we reboot let's set the shutdown
|
||||
* watchdog and tell the shutdown binary to
|
||||
* repeatedly ping it */
|
||||
watchdog_set_timeout(&arg_shutdown_watchdog);
|
||||
watchdog_close(false);
|
||||
r = watchdog_set_timeout(&arg_shutdown_watchdog);
|
||||
watchdog_close(r < 0);
|
||||
|
||||
/* Tell the binary how often to ping, ignore failure */
|
||||
if (asprintf(&e, "WATCHDOG_USEC="USEC_FMT, arg_shutdown_watchdog) > 0)
|
||||
|
||||
Reference in New Issue
Block a user