pause()函數__函數

來源:互聯網
上載者:User
只有EINTR 有訊號到達中斷此函數的執行。
標頭檔:#include <unistd.h>
定義函數:int pause(void);
函數說明:pause()會令目前的進程暫停(進入睡眠狀態), 直到被訊號(signal)所中斷.

傳回值:只返回-1.

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. 另請參閱

kill (2)

select (2)

signal (2)

sigsuspend (2) 相關函數:kill, signal, sleep

標頭檔:#include <unistd.h>

定義函數:int pause(void);

函數說明:pause()會令目前的進程暫停(進入睡眠狀態), 直到被訊號(signal)所中斷.

傳回值:只返回-1.

錯誤碼:EINTR 有訊號到達中斷了此函數.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.