pause()

pause calling thread to wait for signal 

Function


SYNOPSIS

#include <unistd.h>

int pause(void);


DESCRIPTION

The pause() function suspends the calling thread until delivery of a signal whose action is either the execute a signal-catching 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-catching function, pause() returns after the signal-catching function returns.


PARAMETERS

None.


RETURN VALUES

If the suspended thread is awakened by a signal and the signal-handling function returns, pause() returns -1 and sets errno to EINTR.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
alarm(), kill(), sigaction(), signal(), sigsuspend(), sigwait()


PTC MKS Toolkit 10.4 Documentation Build 39.