在已知点执行信号处理程序
我想要做的是防止信号中断我的应用程序。例如,在已知点,在进行系统调用之前,我将检查待处理信号并调用它们的处理程序。换句话说,我想将信号处理推迟到代码中的已知点。
知道如何做到这一点吗?这可以在用户空间中完成还是需要修改内核?
What I want to do is to prevent signals from interrupting my application. At known points, for example, before making a system call, I will check for pending signals and call their handlers. In other words, I want to defer signal handling to known points in the code.
Any idea how this can be done? Can this be done in user-space or kernel modification will be required?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sigprocmask: http://resin.csoft.net/cgi -bin/man.cgi?section=2&topic=sigprocmask
sigprocmask: http://resin.csoft.net/cgi-bin/man.cgi?section=2&topic=sigprocmask