async-safe
The usage of sig_atomic_t in linux signal mask function
I was recently studying the book named Advanced Linux Programming and I ran into this question: The book said you should use sig_atomic_t variable type to be sure that if you set a global flag or coun[详细]
2023-01-19 00:56 分类:问答Is there a way to test whether I'm in a signal handler?
I\'m having to work on a logging module that can be called from various places in a large project.The problem I have is that sometimes the module may be called from code executed inside a signal handl[详细]
2022-12-22 05:34 分类:问答