[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #1638: Signal handling and parameters
From: |
Chicken Trac |
Subject: |
Re: #1638: Signal handling and parameters |
Date: |
Mon, 02 Mar 2020 11:05:42 -0000 |
#1638: Signal handling and parameters
-------------------------------------+-------------------------------------
Reporter: Mario | Owner: (none)
Domenech Goulart |
Type: defect | Status: new
Priority: major | Milestone: 5.3
Component: unknown | Version: 5.1.0
Resolution: | Keywords: signals, parameters
Estimated difficulty: |
-------------------------------------+-------------------------------------
Changes (by Sebastien Marie):
* keywords: signals, parameters, load => signals, parameters
Comment:
the testcase could be simplified to not depend on (load).
{{{
$ cat hup.scm
(cond-expand
(chicken-4
(use posix))
(chicken-5
(import
(chicken base)
(chicken process signal)
(chicken process-context))))
(define param (make-parameter 42))
;(param 42)
(set-signal-handler!
signal/hup
(lambda (signum)
(print "reloading")
(param 4)
))
(let loop ()
(print (param))
(sleep 1)
(loop))
}}}
when {{{(param 42)}}} is uncommented, the code works as expected, and the
signal handler properly change the parameter.
else the parameter continues to return {{{42}}} value even after signal
hander called {{{(param 4)}}}
--
Ticket URL: <https://bugs.call-cc.org/ticket/1638#comment:2>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- Re: #1638: Signal handling and parameters,
Chicken Trac <=