3 ms·
The set of functions that can be called from a signal handler is very small (most of them corresponding to system calls or otherwise non-stateful functions like
by userbinator 4y ago
The set of functions that can be called from a signal handler is very small (most of them corresponding to system calls or otherwise non-stateful functions like strchr()); gethostbybame() is not one of them, and neither are malloc() nor free().