diff options
author | 2019-02-13 17:09:05 +0100 | |
---|---|---|
committer | 2019-03-27 10:48:40 +0100 | |
commit | 418ba126a955ee38804152c6c905ff200bbc1a92 (patch) | |
tree | 074fff556d86097a54e1d1eae38a27c0d1ab430f /src/jobs.c | |
parent | bf7fe722bcfc23dfc38d5adc765eadc3316b70a2 (diff) |
watchdog: Isolate the watchdog from jobs
Change-Id: Iaa7f71dc7e5d8d525463619b4da980c827722909
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.c')
-rw-r--r-- | src/jobs.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -17,12 +17,6 @@ #define _GNU_SOURCE -#if defined(NO_JOBS_WATCHDOG) -# define HAS_WATCHDOG 0 -#else -# define HAS_WATCHDOG 1 -#endif - #include <stdlib.h> #include <stdint.h> #include <unistd.h> @@ -36,9 +30,6 @@ #include <sys/eventfd.h> #include <systemd/sd-event.h> -#if HAS_WATCHDOG -#include <systemd/sd-daemon.h> -#endif #include "jobs.h" #include "sig-monitor.h" @@ -890,12 +881,6 @@ int jobs_start(int allowed_count, int start_count, int waiter_count, void (*star running = 0; remains = waiter_count; -#if HAS_WATCHDOG - /* set the watchdog */ - if (sd_watchdog_enabled(0, NULL)) - sd_event_set_watchdog(get_sd_event_locked(), 1); -#endif - /* start at least one thread: the current one */ launched = 1; while (launched < start_count) { |