pause()函數 Unix/Linux
內容簡介
#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. |