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.