aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-timer.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-31 03:31:06 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-31 03:31:06 +0100
commit5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599 (patch)
treebd3729623e8600d53cc366f41e61b0b21e73a1b2 /src/satd-timer.c
parentsome improvements and fixes (diff)
downloadsat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.gz
sat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.bz2
sat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.xz
fix bugs and improve debugging
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/satd-timer.c')
-rw-r--r--src/satd-timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/satd-timer.c b/src/satd-timer.c
index 4550465..310c23d 100644
--- a/src/satd-timer.c
+++ b/src/satd-timer.c
@@ -63,6 +63,8 @@ main(int argc, char *argv[])
struct job **job;
int rc = 0;
+ t (reopen(STATE_FILENO, O_RDWR));
+
/* Get current expiration time. */
t (timerfd_gettime(BOOT_FILENO, &bootspec));
t (timerfd_gettime(REAL_FILENO, &realspec));
@@ -88,6 +90,7 @@ done:
for (job = jobs; *job; job++)
free(*job);
free(jobs);
+ close(STATE_FILENO);
return rc;
fail:
perror(argv[0]);