cffi-sbcl: workaround Darwin issues in call-within-initial-thread.
commit33970351e71bb5f12ba56fc40270089e948ae112
authorStas Boukarev <stassats@gmail.com>
Tue, 29 Nov 2022 16:03:42 +0000 (29 19:03 +0300)
committerLuís Oliveira <luismbo@gmail.com>
Tue, 29 Nov 2022 16:18:09 +0000 (29 16:18 +0000)
treecb563ae3f5938ec98d3ad983a890b322f248000e
parent8629618e9bb0dfc750d01fc4990404c78ab41705
cffi-sbcl: workaround Darwin issues in call-within-initial-thread.

Darwin does something weird when the thread sigmask has blocked
signals, run the interruption inside sb-sys:with-interrupts.

Don't interrupt at all if the current thread is the initial thread.
src/cffi-sbcl.lisp