[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20083] sigaction lambda appears not to get called in 1.8.1
From: |
Gregory Marton |
Subject: |
[bug #20083] sigaction lambda appears not to get called in 1.8.1 |
Date: |
Tue, 05 Jun 2007 10:27:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
URL:
<http://savannah.gnu.org/bugs/?20083>
Summary: sigaction lambda appears not to get called in 1.8.1
Project: Guile
Submitted by: gremio
Submitted on: Tuesday 06/05/2007 at 10:27
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
In my guile 1.3.4 (sorry that I do not have a more up-to-date version to play
with):
(let ((handler-called #f))
(sigaction SIGALRM (lambda (sig) (set! handler-called #t)))
(raise SIGALRM)
handler-called)
=> #t
in guile 1.8.1 it returns false. I've tried getting sigaction to display to
a port, etc., and it seems simply not to call the lambda. It's as if
sigaction set the action to SIG_IGN instead of my lambda, except that when I
query sigaction I get the appropriate (#<procedure #f (sig)> . 2), not (1 .
2). This is only slightly different from 1.3.4, where the result of the
subsequent sigaction call is (#<procedure (sig)> . 268435456) --- what is the
significance of the new #f? Is this a bug, or am I using sigaction wrong?
Thanks,
Grem
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20083>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #20083] sigaction lambda appears not to get called in 1.8.1,
Gregory Marton <=