sigpause()

release blocked signals and wait for interrupt 

Function


SYNOPSIS

#include <signal.h>

int sigpause(int sig);


DESCRIPTION

The sigpause() function removes sig from the signal mask of the calling process and suspends the calling process until a signal is received. sighold() in conjunction with sigpause() may be used to establish critical regions of code that require the delivery of a signal to be temporarily deferred.


PARAMETERS

sig 

Specifies the signal.


RETURN VALUES

sigpause() always returns -1 and sets errno to one of the following values:

EINTR 

A signal was caught.

EINVAL 

The value of sig is not a valid signal or is equal to SIGKILL or SIGSTOP.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

BSD provides a sigpause() implementation that is incompatible with the UNIX 98 specification.


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

api_intro

Functions:
kill(), pause(), sigaction(), sighold(), sigignore(), signal(), sigrelse(), sigset(), wait()


PTC MKS Toolkit 10.3 Documentation Build 39.