rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / cluster / pacemaker / patches / 009-watchdog_c.patch
blobac07e9b24cd9845fd8bca2d747d52f9caf2140be
1 commit 1b57b0ac3c5e1afca9fcd17952391ef398fd8ef7
2 Author: Andreas Grueninger <andreas.grueninger@nomail.com>
3 Date: Sat Oct 22 18:28:27 2016 +0200
5 Fix: watchdog : compiles now on Solaris/Illumos …
7 It compiles and the reboot will work.
8 But all accesses to procfs will produce failures.
9 If the functionality is required further investigations are necessary.
11 diff --git a/lib/common/watchdog.c b/lib/common/watchdog.c
12 index 022884f..da0a0e4 100644
13 --- a/lib/common/watchdog.c
14 +++ b/lib/common/watchdog.c
15 @@ -142,7 +142,11 @@ pcmk_panic_local(void)
17 sysrq_trigger('b');
18 /* reboot(RB_HALT_SYSTEM); rc = errno; */
19 +#ifdef ON_SOLARIS
20 + reboot(RB_AUTOBOOT, (char *)"reboot initiated by pacemaker");
21 +#else
22 reboot(RB_AUTOBOOT);
23 +#endif
24 rc = errno;
26 do_crm_log_always(LOG_EMERG, "Reboot failed, escalating to %d: %s (%d)", ppid, pcmk_strerror(rc), rc);