pause - 等待信號
內容簡介
#include <unistd.h>
int pause(void);
描述
pause() 庫函式使呼叫進程(或執行緒)睡眠狀態,直到接收到信號,要麼終止,或導致它呼叫一個信號捕獲函式。
返回值
The pause() function only returns when a signal was caught and the signal-catching function returned. In this case pause() returns -1, and errno is set to EINTR.
錯誤
標籤 |
描述 |
EINTR |
a signal was caught and the signal-catching function returned. |
遵循於
SVr4, 4.3BSD, POSIX.1-2001.
另請參閱