A function is async-signal-safe when it can be called safely from within a signal handler. POSIX lists them: write, _exit, waitpid and most plain system calls are; printf, malloc and anything that takes a lock or touches a shared buffer are not.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表