Tom Tromey <tro...@redhat.com> skribis: > Ludovic> Would it work, upon SIGINT, to do something like: > Ludovic> (system-async-mark (lambda () > Ludovic> (throw 'system-error ... EINTR))) > Ludovic> That would eventually raise an exception in Scheme code. > > According to the Guile docs one must use scm_sigaction, since > scm_system_async_mark is not async-signal-safe.
Oh, right. This could be worked around by having a separate signal delivery thread (which is what Guile currently does internally), but that’s not so great. I guess this is another limitation of Guile’s current signal handling strategy, and something we should fix. Ludo’.