即使使用 SA_RESTART,哪些功能也会被信号中断? [英] Which functions are interrupted by signals even with SA_RESTART?
本文介绍了即使使用 SA_RESTART,哪些功能也会被信号中断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当接收或处理信号时,是否有任何合理完整的列表来说明 POSIX 中哪些函数被 EINTR
中断,即使没有信号处理程序或者处理程序是使用 安装的SA_RESTART
?一些例子:
Is there any reasonably complete list of which functions in POSIX are interrupted with EINTR
when a signal is received or handled, even if there is no signal handler or if the handler was installed with SA_RESTART
? Some examples:
选择
nanosleep
- 等
推荐答案
tcsetattr 也是不可重启的,至少在 Linux 2.6.18 中
tcsetattr is also not restartable, at least in Linux 2.6.18
这篇关于即使使用 SA_RESTART,哪些功能也会被信号中断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文