Hi,
Is there a way to trap a call to exit made in a C library and prevent it from stopping the currently running Lisp process? I'm struggling with an annoying C library function that was written to call exit() if it didn't get the arguments that it expected (or sometimes to call exit() even if it did get the expected arguments).
I.e, how would I wrap this CFFI function so that calling it won't stop my lisp process?
(defcfun ("exit" exit) :void (code :int))
Thanks, -Hazen