1SIGPENDING(2)              Linux Programmer's Manual             SIGPENDING(2)
2
3
4

NAME

6       sigpending - examine pending signals
7

SYNOPSIS

9       #include <signal.h>
10
11       int sigpending(sigset_t *set);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       sigpending(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE
16

DESCRIPTION

18       sigpending()  returns  the set of signals that are pending for delivery
19       to the calling thread (i.e., the signals which have been  raised  while
20       blocked).  The mask of pending signals is returned in set.
21

RETURN VALUE

23       sigpending() returns 0 on success and -1 on error.
24

ERRORS

26       EFAULT set  points  to  memory which is not a valid part of the process
27              address space.
28

CONFORMING TO

30       POSIX.1-2001.
31

NOTES

33       See sigsetops(3) for details on manipulating signal sets.
34
35       The set of signals that is pending for a thread is the union of the set
36       of  signals that is pending for that thread and the set of signals that
37       is pending for the process as a whole; see signal(7).
38
39       A child created via fork(2) initially has an empty pending signal  set;
40       the pending signal set is preserved across an execve(2).
41

BUGS

43       In  versions  of glibc up to and including 2.2.1, there is a bug in the
44       wrapper function for sigpending() which means  that  information  about
45       pending real-time signals is not correctly returned.
46

SEE ALSO

48       kill(2), sigaction(2), signal(2), sigprocmask(2), sigsuspend(2), sigseā€
49       tops(3), signal(7)
50

COLOPHON

52       This page is part of release 3.22 of the Linux  man-pages  project.   A
53       description  of  the project, and information about reporting bugs, can
54       be found at http://www.kernel.org/doc/man-pages/.
55
56
57
58Linux                             2008-10-04                     SIGPENDING(2)
Impressum