> So, is there a) any mechanism inside Python that can detect if the
> current code is executed in a signal handler, or b) a list of
> statements that must not be used in a Python signal handler in order
> to avoid glibc function calls that are not async-signal safe?
The execution of signal handle
Hi,
can I make sure that Python uses only async-signal safe glibc
functions in signal handlers?
For example, you must not call malloc or free in signal handlers, see
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03
The reason is, that if a signal is caught wh