From 77109fa849e67b8efab9454002cc10249d0b22da Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Fri, 25 Jul 2014 21:14:01 +0400 Subject: [PATCH] * atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME because atimer expiration is absolute rather than relative. --- src/ChangeLog | 5 +++++ src/atimer.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 08807cd5c09..8ef82e125f5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-07-26 Dmitry Antipov + + * atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME + because atimer expiration is absolute rather than relative. + 2014-07-25 Eli Zaretskii * w32term.h (current_popup_menu, menubar_in_use): Move diff --git a/src/atimer.c b/src/atimer.c index e457a7fcf1c..c4f062beb17 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -291,7 +291,7 @@ set_alarm (void) struct itimerspec ispec; ispec.it_value = atimers->expiration; ispec.it_interval.tv_sec = ispec.it_interval.tv_nsec = 0; - if (timer_settime (alarm_timer, 0, &ispec, 0) == 0) + if (timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0) return; } #endif -- 2.39.2