7699c03a36
- Update to sanlock 3.4.0 - Enable fence_sanlockd so that lvm2 can use the new lvmlocked feature in cluster environment * fix unpackaged file - /usr/sbin/rcfence_sanlockd * refresh suse-no-date-time.patch to cover the same issue in fence_sanlockd * adjust fence_sanlockd.init and suse-systemd.patch - Enable sanlk-reset subpackage - Fix "undefined symbol to io_suspend" at runtime, bsc#1030060 suse-fix-link-errors.patch OBS-URL: https://build.opensuse.org/request/show/481647 OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=28
31 lines
712 B
Diff
31 lines
712 B
Diff
Index: src/main.c
|
|
===================================================================
|
|
--- src/main.c.orig
|
|
+++ src/main.c
|
|
@@ -60,6 +60,10 @@
|
|
|
|
#define SIGRUNPATH 100 /* anything that's not SIGTERM/SIGKILL */
|
|
|
|
+#ifndef SCHED_RESET_ON_FORK
|
|
+#define SCHED_RESET_ON_FORK 0
|
|
+#endif
|
|
+
|
|
struct thread_pool {
|
|
int num_workers;
|
|
int max_workers;
|
|
Index: wdmd/main.c
|
|
===================================================================
|
|
--- wdmd/main.c.orig
|
|
+++ wdmd/main.c
|
|
@@ -41,6 +41,10 @@
|
|
#define GNUC_UNUSED __attribute__((__unused__))
|
|
#endif
|
|
|
|
+#ifndef SCHED_RESET_ON_FORK
|
|
+#define SCHED_RESET_ON_FORK 0
|
|
+#endif
|
|
+
|
|
#define DEFAULT_TEST_INTERVAL 10
|
|
#define RECOVER_TEST_INTERVAL 1
|
|
#define DEFAULT_FIRE_TIMEOUT 60
|