]> git.mdlowis.com Git - projs/tide.git/commitdiff
removed watchdog timer due to bad behavior over higher latency connections
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 28 Oct 2019 02:57:46 +0000 (22:57 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 28 Oct 2019 02:57:46 +0000 (22:57 -0400)
inc/dbc.h
src/lib/dbc.c
src/tide.c

index d0ee810003d1f46801a7024cb3c2748d590fd2d8..c8cc43a6ba18e267ed33e50b452773ee7bbe16a4 100644 (file)
--- a/inc/dbc.h
+++ b/inc/dbc.h
@@ -8,10 +8,8 @@
     void dbc_init(char* path, void (*dumpfn)(FILE*));
     void dbc_require(bool success, char* text, char* file, int line);
     void dbc_ensure(bool success, char* text, char* file, int line);
-    void dbc_wdtkick(void);
 #else
     #define dbc_init(a,b) ((void)0)
     #define dbc_require(a,b,c,d) ((void)0)
     #define dbc_ensure(a,b,c,d) ((void)0)
-    #define dbc_wdtkick() ((void)0)
 #endif
index 85a725e76873a5554604c0077ecf382cf7596bb9..bca427f0e0978dd63a7444238a417cfbb2af58c3 100644 (file)
@@ -78,11 +78,4 @@ void dbc_ensure(bool success, char* text, char* file, int line)
     }
 }
 
-void dbc_wdtkick(void)
-{
-    alarm(0); /* Cancel previous alarm */
-    signal(SIGALRM, handle_signal);
-    alarm(1); /* Start new alarm */
-}
-
 #endif
index 5e3eeeb19e95a9fbf39d1c38ecf543a07195fc80..5a71a2dc22edddf958d28fd6bf068fad502395c5 100644 (file)
@@ -347,7 +347,6 @@ void win_loop(void)
     int count = 0;
     while (X.running)
     {
-        dbc_wdtkick();
         bool ready = job_poll(Timeout);
         count += (ready ? -count : 1);
         if (count < maxcount)