[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questions about the signal facility.



Dan Stanger <dxs@evolving.com> wrote:

> i also under certain conditions want to hold signals ... is there
> a way to do this in lisp or do i have to go to using c functions.

Using the FFI, you should be able to call some C functions which perform
the necessary sigprocmask() calls.

> i want to use SIGUSR1 to interupt a read in progress.

Again, use the FFI. But you can't call Lisp functions from within the
signal handler: The interpreter and bytecode interpreter are not reentrant,
and on many systems you cannot even call malloc() from within a signal
handler.


                    Bruno Haible
                    haible@ma2s2.mathematik.uni-karlsruhe.de