sighold()

add signal to signal mask of process 

Function


SYNOPSIS

#include <signal.h>

int sighold(int sig);


DESCRIPTION

The sighold() function adds sig to the signal mask of the calling process.

sighold() in conjunction with sigrelse() 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, which may be any signal except SIGKILL or SIGSTOP.


RETURN VALUES

If successful, sighold() returns zero. On failure, it returns -1 and sets errno to one of the following values:

EINVAL 

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


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-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

api_intro

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


PTC MKS Toolkit 10.4 Documentation Build 39.