mmc@maruska.dyndns.org (Michal Maruška) writes:
> i would need a macro(?) to protect some code (file ops)
> against user/keyboard's control-c. Anybody has done it (and wants to share)?
ok, i've found it: (with-enabled-interrupts interrupt-set . body)
But how to make up the interrupt-set, if i want to remove just one signal?
it seems, that scsh/low-interrupt.scm does not export the necessary ops on the
i-set (e.g. remove-interrupt).
or am i just missing something?
........ [experimentation: looking up the package, interface ....]
11> (interrupt-in-set? (enabled-interrupts) interrupt/int)
Error: undefined variable
interrupt-in-set?
(package user)
12> ,open low-interrupt
Newly accessible in user: (interrupt-in-set?)
12>
12> (interrupt-in-set? (enabled-interrupts)
interrupt/int)
Scheme48 heap overflow
Process scheme exited abnormally with code 255
let's restart:
Welcome to scsh 0.6.1 (Combinatorial Algorithms)
Type ,? for help.
>
> ,open low-interrupt
> (interrupt-in-set? (enabled-interrupts)
interrupt/int)
Scheme48 heap overflow
Process scheme exited abnormally with code 255
|