◐ Shell
clean mode source ↗

Message 58663 - Python tracker

The python API has the advantage that you can test for it at runtime,
avoiding a compile-time check.  I don't know if this is significant though.

I don't see the big deal about a C API.  All you need to do is call
PyImport_ImportModule("signal") and PyObject_CallMethod(mod,
"set_wakeup_fd", "i", fd);