From 1507be5b01df4fcbaf42ca514a79b4b6c7f19d23 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 27 Mar 2012 12:11:37 +0200 Subject: [PATCH] Correctly set the SIGARLM timer for the software watchdog. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 2df913b0..30fb0091 100644 --- a/src/debug.c +++ b/src/debug.c @@ -692,7 +692,7 @@ void watchdogScheduleSignal(int period) { /* Will stop the timer if period is 0. */ it.it_value.tv_sec = period/1000; - it.it_value.tv_usec = period%1000; + it.it_value.tv_usec = (period%1000)*1000; /* Don't automatically restart. */ it.it_interval.tv_sec = 0; it.it_interval.tv_usec = 0; -- 2.45.2