Pause () function __ function

Source: Internet
Author: User
Only EINTR has a signal arrival interrupt this function execution.
Header files: #include <unistd.h>
Definition function: int pause (void);
Function Description: Pause () will suspend the current process (go to sleep state) until it is interrupted by a signal (signal).

Return value: Returns only-1.

Pause-Waiting signal content introduction #include <unistd.h>

int pause (void); Description Pause () The library function causes the calling process (or thread) to sleep until it receives a signal, terminates it, or causes it to call a signal capture function. return value The pause () function is returns when a signal is caught and the signal-catching function returned. In the case pause () returns-1, and errno are set to eintr . Error

label Description
eintr A signal was caught and the signal-catching function returned.
Follow theSVR4, 4.3BSD, posix.1-2001. See also

Kill (2)

Select (2)

Signal (2)

Sigsuspend (2) Related functions: Kill, Signal, sleep

Header files: #include <unistd.h>

Definition function: int pause (void);

Function Description: Pause () will suspend the current process (go to sleep state) until it is interrupted by a signal (signal).

Return value: Returns only-1.

Error code: EINTR has a signal arrival interrupt this function.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.