From: Dmitry Antipov Date: Fri, 25 Jul 2014 17:14:01 +0000 (+0400) Subject: * atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME X-Git-Tag: emacs-25.0.90~2636^3~42 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=77109fa849e67b8efab9454002cc10249d0b22da;p=emacs.git * atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME because atimer expiration is absolute rather than relative. --- 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