forked from pool/sanlock
- python: release leases for other processes - python: add shared resource parameter to acquire - add a logrotate file - status for all shared tokens - retry transient sh failures - fix inquire state string OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=13
31 lines
653 B
Diff
31 lines
653 B
Diff
Index: src/main.c
|
|
===================================================================
|
|
--- src/main.c.orig
|
|
+++ src/main.c
|
|
@@ -52,6 +52,10 @@
|
|
|
|
#define RELEASE_VERSION "2.1"
|
|
|
|
+#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
|
|
@@ -43,6 +43,10 @@
|
|
|
|
#define RELEASE_VERSION "2.1"
|
|
|
|
+#ifndef SCHED_RESET_ON_FORK
|
|
+#define SCHED_RESET_ON_FORK 0
|
|
+#endif
|
|
+
|
|
#define DEFAULT_TEST_INTERVAL 10
|
|
#define DEFAULT_FIRE_TIMEOUT 60
|
|
#define DEFAULT_HIGH_PRIORITY 1
|