2012-01-18 23:10:06 +01:00
|
|
|
Index: src/main.c
|
|
|
|
===================================================================
|
|
|
|
--- src/main.c.orig
|
|
|
|
+++ src/main.c
|
2017-03-21 22:32:03 +01:00
|
|
|
@@ -60,6 +60,10 @@
|
2012-03-13 19:08:11 +01:00
|
|
|
|
2012-12-03 23:15:47 +01:00
|
|
|
#define SIGRUNPATH 100 /* anything that's not SIGTERM/SIGKILL */
|
2012-01-18 23:10:06 +01:00
|
|
|
|
|
|
|
+#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
|
2012-12-03 23:15:47 +01:00
|
|
|
@@ -41,6 +41,10 @@
|
|
|
|
#define GNUC_UNUSED __attribute__((__unused__))
|
|
|
|
#endif
|
2012-01-18 23:10:06 +01:00
|
|
|
|
|
|
|
+#ifndef SCHED_RESET_ON_FORK
|
|
|
|
+#define SCHED_RESET_ON_FORK 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define DEFAULT_TEST_INTERVAL 10
|
2012-12-03 23:15:47 +01:00
|
|
|
#define RECOVER_TEST_INTERVAL 1
|
2012-01-18 23:10:06 +01:00
|
|
|
#define DEFAULT_FIRE_TIMEOUT 60
|