How to interrupt a long-running ccall C/C++ library?

How can I interrupt a ccall C/C++ function with Ctrl-C, or interrupt it in Jupyter Notebook?
It seems that the Keyboard Interrupt is not passed to the external C library.

It depends… Julia installs it’s own interrupt handlers and we currently don’t provide a facility for signal chaining.
Although we should!

So if your C++ library installs its own signal handler, most likely the Julia one will be called instead.