3 ms·
> You can't call OS functions from a signal handler You can, as long as these functions are "async signal safe", see https://man7.org/linux/man-pages/man7/sign
by cesarb 4y ago
> You can't call OS functions from a signal handler
You can, as long as these functions are "async signal safe", see https://man7.org/linux/man-pages/man7/signal-safety.7.html https://man7.org/linux/man-pages/man7/signal-safety.7.html for details.
- quietbritishjim 4y agoOh wow. I mean, fair enough for simple utilities like strlen(). But open(), write(), close()? I had no idea.