Index: src/main.c =================================================================== --- src/main.c.orig +++ src/main.c @@ -50,6 +50,10 @@ #include "client_cmd.h" #include "cmd.h" +#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 "1.9" +#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