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;