EINTR是linux中函式的返回狀態,在不同的函式中意義不同。表示某種阻塞的操作,被接收到的信號中斷,造成的一種錯誤返回值。
基本介紹
- 外文名:EINTR
- 含義:linux中函式的返回狀態
- 包含:write、read等
- read含義:由於信號中斷,沒讀到任何數據
write,read,sem_wait,recv,
write
表示:由於信號中斷,沒寫成功任何數據。
The call was interrupted by a signal before any data was written.
read
表示:由於信號中斷,沒讀到任何數據。
The call was interrupted by a signal before any data was read.
sem_wait
函式調用被信號處理函式中斷
The call was interrupted by a signal handler.
recv
由於信號中斷返回,沒有任何數據可用。
function was interrupted by a signal that was caught, before any data was available.