From 4b719809339c3d7ae20ac95ba8a59dd94234be8c Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 1 Nov 2016 00:16:56 +0800 Subject: [PATCH] Major release with tons of improvements - Minor fix, sigemptyset(&emptymask) - Mostly consists of major code changes. Great thanks to Simon Lieb (pips-) for his help. --- config.mk | 2 +- spt.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.mk b/config.mk index f61525d..d8068c2 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # spt version -VERSION = 0.3 +VERSION = 0.4 # Customize below to fit your system diff --git a/spt.c b/spt.c index 73565ae..7dba835 100644 --- a/spt.c +++ b/spt.c @@ -150,6 +150,8 @@ main(int argc, char *argv[]) if (sigaction(SIGUSR2, &sa, NULL) == -1) die("cannot associate SIGUSR2 to handler\n"); + sigemptyset(&emptymask); + for (i = 0; ; i = (i + 1) % LEN(timers)) { notify_send(timers[i].cmt); remaining.tv_sec = timers[i].tmr;