From 5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 31 Dec 2015 03:31:06 +0100 Subject: fix bugs and improve debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-timer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/satd-timer.c') 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]); -- cgit v1.2.3-70-g09d2