unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@inria.fr (Ludovic Courtès)
To: 14640@debbugs.gnu.org
Subject: bug#14640: SA_RESTART prevents execution of signal handlers
Date: Mon, 17 Jun 2013 15:54:45 +0200	[thread overview]
Message-ID: <87sj0gx2oq.fsf@inria.fr> (raw)

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’.





             reply	other threads:[~2013-06-17 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 13:54 Ludovic Courtès [this message]
2016-06-21  6:37 ` bug#14640: SA_RESTART prevents execution of signal handlers 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sj0gx2oq.fsf@inria.fr \
    --to=ludovic.courtes@inria.fr \
    --cc=14640@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).