If the signal causes a handler function to be executed,thenpause returns. This is considered an unsuccessful return (since "successful" behavior would be to suspend the program forever),so the return value is-1 . Even if you specify that other primitives should resume when a system handler returns (see section),this has no effect onpause ; it always fails when a signal is handled.
The followingerrno error conditions are defined for this function:
EINTR
- The function was interrupted by delivery of a signal.
If the signal causes program termination,pause doesn't return (obviously). (编辑:ASP站长)
【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。
|