I just found out that someone is calling - from a signal handler - a definitely not async-signal-safe function that I wrote.
So, now I\'m curious: how to circumvent this
I guess you need to do the following. This is a complex solution, which combines the best practices not only from coding, but from software engineering as well!
sighnd
, like sighndInterrupt
.sighnd...
. If it does, then congratulations, you're inside a signal handler!