]> git.eshelyaron.com Git - emacs.git/commitdiff
* atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 25 Jul 2014 17:14:01 +0000 (21:14 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 25 Jul 2014 17:14:01 +0000 (21:14 +0400)
because atimer expiration is absolute rather than relative.

src/ChangeLog
src/atimer.c

index 08807cd5c09ed755614cb2577738ab004c62b6ef..8ef82e125f5204bdc55f72eeead80d72cf3cc4f7 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-26  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * atimer.c (set_alarm) [HAVE_ITIMERSPEC]: Use TIMER_ABSTIME
+       because atimer expiration is absolute rather than relative.
+
 2014-07-25  Eli Zaretskii  <eliz@gnu.org>
 
        * w32term.h (current_popup_menu, menubar_in_use): Move
index e457a7fcf1c37093cc0aaad5f58061b9bb14809a..c4f062beb174b8f21e1b7786325279d291f1b04d 100644 (file)
@@ -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