sigpending()

get pending signals 

Function


SYNOPSIS

#include <signal.h>

int sigpending(sigset_t *set);


DESCRIPTION

The sigpending() function examines signals that are blocked and pending. Specifically, sigpending() retrieves those signals that have been sent to the calling process but are being blocked from delivery by the calling process's signal mask. The signals are stored in set.


PARAMETERS

set 

Is a return pointer to the set of pending signals.


RETURN VALUES

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

EFAULT 

set is an invalid pointer.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

None.


AVAILABILITY

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


SEE ALSO

Functions:
pthread_sigmask(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), sigismember(), signal(), sigpending(), sigprocmask(), sigsuspend()


MKS Toolkit 9.2 Documentation Build 16.