Philipp Stephani wrote:
> why does it need to detect anything? Can't it just be a different
> function that doesn't signal, similar to push_handler and
> push_handler_nosignal?
Yes, that should work and should be easy to implement. But how would it behave
to the caller? Will the caller have to check that it doesn't return NULL? I hope
not; that would be a pain and error-prone.