阻塞时的信号会被添加到待处理队列中,并且只有在解除阻塞时才会被传递。我想阻止某些信号,并仅当所有信号都在待处理队列中时才取消阻止它们。是否有一种机制或系统调用可以用来打印我的进程的待处理信号。
最佳答案
检查 man sigpending
手册页:
sigpending() returns the set of signals that are pending for delivery to the calling thread (i.e., the signals which have been raised while blocked). The mask of pending signals is returned in set.
关于c - 在C中打印待处理信号队列中的阻塞信号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53152625/