如何删除信号处理程序 [英] How do i remove a signal handler
本文介绍了如何删除信号处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经制作了关注信号处理程序
I've made the follow signal handler
struct sigaction pipeIn;
pipeIn.sa_handler = updateServer;
sigemptyset(&pipeIn.sa_mask);
sa.sa_flags = SA_RESTART;
if(sigaction(SIGUSR1, &pipeIn, NULL) == -1){
printf("We have a problem, sigaction is not working.\n");
perror("\n");
exit(1);
}
如何删除或阻止此特定处理程序,以便可以设置另一个使用相同信号的信号处理程序?谢谢.
How do I remove or block this particular handler so that I can set up another signal handler that uses the same signal? Thanks.
推荐答案
在调用 查看全文