There is an important-to-understand issue during signal handling, when working with reentrant-unsafe (also called async-signal-unsafe) functions within a signal handler.
Of course, to understand this issue, you must first understand what exactly a reentrant function is, and, subsequently, what is meant by reentrant-safe or async-signal-safe functions.