unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14640: SA_RESTART prevents execution of signal handlers
@ 2013-06-17 13:54 Ludovic Courtès
  2016-06-21  6:37 ` Andy Wingo
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2013-06-17 13:54 UTC (permalink / raw)
  To: 14640

When using SA_RESTART, signal handlers are never executed, as in this
example (checked on 2.0.9+):

--8<---------------cut here---------------start------------->8---
(sigaction SIGALRM
  (lambda (signum)
    (pk 'sig signum))
  SA_RESTART)
(alarm 3)
(pk 'char (read-char))
--8<---------------cut here---------------end--------------->8---

Presumably this is because the read(2) syscall is automatically
restarted, leaving no chance for the handler async to run.

Ludo’.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-21  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-17 13:54 bug#14640: SA_RESTART prevents execution of signal handlers Ludovic Courtès
2016-06-21  6:37 ` Andy Wingo
2016-06-21  7:48   ` Ludovic Courtès
2016-06-21  7:59     ` Andy Wingo
2016-06-21  9:46       ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).