f32eec2dde
- Make the watchdog timeout configurable - wdmd: close watchdog when not used - userstorage: replace by PyPI userstorage - sanlock: skip short delay in delta lease reacquire - sanlock: use product_uuid for host name - wdmd: fix timing for iTCO_wdt - sanlock: save client_id in token and report in status and use in -C - sanlock: include startup message in syslog - sanlock: improve repeated ballots in paxos_acquire - sanlock: fix zero io timeout for direct requests - sanlock: fix release writing zero dblock values - sanlock: skip delay when same host acquires delta lease OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=74
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
|
|
@@ -43,6 +43,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
|