In APUP section 12.5 ,mentioned that:
" If a function is reentrant with respect to multiple threads, we say that it is thread-safe. This doesn't tell us, however, whether the function is reentrant with respect to signal handlers."
I was confusing why a function is thread-safe but maybe not async-signal safe.
is there an example ?
Thanks