TopHome
<2024-03-17 Sun>lisptech

Signal handling in Common Lisp

Some set of useful links to do signal handling in Common Lisp with explanations.

Start with https://stackoverflow.com/questions/9950680/unix-signal-handling-in-common-lisp which lists 3 different ways to do this:

  1. Writing a C-FFI wrapper over the C version directly. (ie, roll your own)
  2. The function provided by the cl-async library: http://orthecreedence.github.io/cl-async/signal-handling. (This may be overkill unless you are already using that library).
  3. The trivial-signal library: https://github.com/guicho271828/trivial-signal. This is a standalone library with one job. So, a good choice.

If you are going with trivial-signal, there are few extra pointers.