SHA256
1
0
forked from pool/sanlock
sanlock/sanlock-SCHED_RESET_ON_FORK-undefined.patch
James Fehlig 1dfd85810b - Update to sanlock 2.6
- Add fence_sanlock, a fence agent that uses /dev/watchdog to
    reset hosts (currently disabled)
  - Various bug fixes and improvements

OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=15
2012-12-03 22:15:47 +00:00

31 lines
712 B
Diff

Index: src/main.c
===================================================================
--- src/main.c.orig
+++ src/main.c
@@ -56,6 +56,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