Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
pause - suspend process until signal is received
&pagelevel(4)&pagelevel
Syntax | #include <unistd.h> int pause(void); |
Description pause()
suspends the calling process until delivery of a signal whose action is either to
| execute a signal-handling function or to terminate the process. If the action is to terminate the process, pause() will not return. If the action is to execute a signal-handling function, pause() will return after the signal-handling function returns. If threads are used, then the function affects the process or a thread in the following manner: Suspends the thread until it receives a signal. |
Return val. | -1 if an error occurs. errno is set to indicate the error. Since pause() suspends process execution indefinitely unless interrupted by a signal, there is no successful completion return value. |
Errors | pause() will fail if: |
EINTR | A signal is caught by the calling process and control is returned from the signal-handling function. |
See also | sigsuspend() , sleep() , unistd.h . |