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.  In the event of an
24       error, errno is set to indicate the cause.
25

ERRORS

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

CONFORMING TO

31       POSIX.1-2001.
32

NOTES

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

BUGS

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

SEE ALSO

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

COLOPHON

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