all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15561: Timer can miss its SIGALRM
@ 2013-10-08 14:20 Barry OReilly
  2014-02-28 14:43 ` bug#15561: periodic timer stops running Barry OReilly
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Barry OReilly @ 2013-10-08 14:20 UTC (permalink / raw)
  To: 15561

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

Looking over the timer code, the do_pending_atimers function does:

      block_atimers ();
      run_timers ();
      unblock_atimers ();

The last line of run_timers is:

  set_alarm ();

But what happens if the next timer happens to be soon, and Emacs
receives SIGALRM inbetween set_alarm and unblock_timers?

What is the purpose of sigmasking SIGALRM anyway? If it means to block
SIGALRM during timers, that doesn't always happen because timers run
within timers. The end of an inner timer would unblock SIGALRM and
the outer timer would finish with the sigmask unblocked.

[-- Attachment #2: Type: text/html, Size: 663 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* periodic timer stops running
@ 2014-02-27 15:17 Peter Münster
  2014-02-27 20:43 ` bug#15561: " Paul Eggert
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Münster @ 2014-02-27 15:17 UTC (permalink / raw)
  To: emacs-devel

Hi,

I use several timers, for example "(run-with-timer 20 20 'org-notify-process)"

But sometimes, a timer just stops running, and I don't know, what event
triggers this problem.

Is it perhaps related to:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15561 ?

It happens about once a day. How could I solve this issue please?

TIA for any hints,
-- 
           Peter




^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <CAFM41H34WhVZ_fCWoh9BxDqs07OPXi_u=5ghTHkv_zAp22SxBA@mail.gmail.com>]

end of thread, other threads:[~2014-04-24  5:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 14:20 bug#15561: Timer can miss its SIGALRM Barry OReilly
2014-02-28 14:43 ` bug#15561: periodic timer stops running Barry OReilly
2014-02-28 14:50   ` Barry OReilly
2014-03-02 15:58   ` Peter Münster
2014-03-04  4:17     ` Barry OReilly
2014-03-04  9:11 ` Peter Münster
2014-03-05 17:13   ` Peter Münster
2014-03-12 21:52   ` Barry OReilly
2014-03-25  8:59 ` Peter Münster
2014-03-25 13:18   ` Barry OReilly
2014-03-25 14:45     ` Paul Eggert
2014-04-24  5:29 ` Peter Münster
  -- strict thread matches above, loose matches on Subject: below --
2014-02-27 15:17 Peter Münster
2014-02-27 20:43 ` bug#15561: " Paul Eggert
     [not found] <CAFM41H34WhVZ_fCWoh9BxDqs07OPXi_u=5ghTHkv_zAp22SxBA@mail.gmail.com>
     [not found] ` <530FF70C.2020905@cs.ucla.edu>
2014-02-28  2:42   ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.