[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #989: High CPU usage when calling signal handler
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #989: High CPU usage when calling signal handler multiple times |
Date: |
Sat, 27 Jul 2013 16:13:56 -0000 |
#989: High CPU usage when calling signal handler multiple times
-----------------------------+----------------------------------------------
Reporter: mario | Owner:
Type: defect | Status: new
Priority: critical | Milestone: 4.9.0
Component: core libraries | Version: 4.8.x
Resolution: | Keywords: signal handling
-----------------------------+----------------------------------------------
Comment(by sjamaan):
Extremely interesting: I cannot reproduce the problem when I add a single
print statement after the {{{(sleep 20)}}} in the signal handler:
{{{
#!scm
;; Press C-c multiple times in an interval < 20s
(use posix)
(set-signal-handler!
signal/int
(lambda (signal)
(print "caught signal" signal)
(sleep 20)
(print "done")))
(let loop ()
(sleep 1)
(loop))
}}}
So far, I can't explain this yet.
--
Ticket URL: <http://bugs.call-cc.org/ticket/989#comment:5>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Chicken-janitors] #989: High CPU usage when calling signal handler multiple times,
Chicken Trac <=