From 497cafbf0f2e96c21539fcc65b149450de262be8 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 15 Aug 2020 18:25:40 -0400 Subject: Add reset interval after which restart interval is reset --- daemon.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon.h') diff --git a/daemon.h b/daemon.h index b8bcb9b..1ee3ea5 100644 --- a/daemon.h +++ b/daemon.h @@ -119,6 +119,7 @@ struct Service { int errPipe[2]; struct Line outLine; struct Line errLine; + struct timespec startTime; struct timespec restartInterval; struct timespec restartDeadline; }; @@ -156,3 +157,4 @@ static inline uint32_t setTest(const struct Set256 *set, byte x) { enum { StopExit = 127 }; extern struct Set256 stopExits; extern struct timespec restartInterval; +extern struct timespec resetInterval; -- cgit 1.4.1