Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以这根本不是代码相关的,只是概念上的。进程在执行过程中的任何时候屏蔽信号的一些原因是什么?我得到了信号和屏蔽的概念,只是想不出任何屏蔽信号的具体例子。
一个例子:父进程派生一个孩子,不关心孩子是否/何时死亡,并且不想在执行阻塞操作时被打断......所以它屏蔽了SIGCHILD.
SIGCHILD
但是你的问题对于这个论坛来说实在是太宽泛了。