Paul Eggert <eggert@cs.ucla.edu> schrieb am Sa., 21. Nov. 2015 um 00:29 Uhr:
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.

Why, that's how malloc also behaves.