Check enabled interrupts before calling the handler.
This commit is contained in:
parent
e74e23388e
commit
66c2ae5d38
|
@ -196,9 +196,11 @@
|
|||
|
||||
(define (deliver-interrupts)
|
||||
(let lp ((last ((structure-ref sigevents most-recent-sigevent))))
|
||||
(let ((event ((structure-ref sigevents next-sigevent-set)
|
||||
last full-interrupt-set)))
|
||||
(call-interrupt-handler ((structure-ref sigevents sigevent-type) event))
|
||||
(let* ((event ((structure-ref sigevents next-sigevent-set)
|
||||
last full-interrupt-set))
|
||||
(interrupt ((structure-ref sigevents sigevent-type) event)))
|
||||
(if (interrupt-enabled? interrupt (enabled-interrupts))
|
||||
(call-interrupt-handler interrupt))
|
||||
(lp event))))
|
||||
|
||||
;;; I am ashamed to say the 33 below is completely bogus.
|
||||
|
|
Loading…
Reference in New Issue