[cffi-devel] trapping C exit
hbabcockos1 at mac.com
hbabcockos1 at mac.com
Tue Mar 21 05:57:26 UTC 2006
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
More information about the cffi-devel
mailing list