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

NAME

6       sigpause - atomically release blocked signals and wait for interrupt
7

SYNOPSIS

9       #include <signal.h>
10
11       int sigpause(int sigmask);  /* BSD */
12
13       int sigpause(int sig);      /* System V / UNIX 95 */
14

DESCRIPTION

16       Don't use this function.  Use sigsuspend(2) instead.
17
18       The  function  sigpause()  is  designed  to  wait  for some signal.  It
19       changes the process's signal mask (set of blocked  signals),  and  then
20       waits  for  a signal to arrive.  Upon arrival of a signal, the original
21       signal mask is restored.
22

RETURN VALUE

24       If sigpause() returns, it was interrupted by a signal  and  the  return
25       value is -1 with errno set to EINTR.
26

CONFORMING TO

28       The System V version of sigpause() is standardized in POSIX.1-2001.
29

NOTES

31   History
32       The classical BSD version of this function appeared in 4.2BSD.  It sets
33       the process's signal mask to sigmask.  UNIX 95 standardized the  incom‐
34       patible System V version of this function, which removes only the spec‐
35       ified signal sig from the process's signal mask.  The unfortunate situ‐
36       ation  with two incompatible functions with the same name was solved by
37       the sigsuspend(2) function, that takes a sigset_t *  argument  (instead
38       of an int).
39
40   Linux notes
41       On  Linux,  this  routine  is a system call only on the Sparc (sparc64)
42       architecture.
43
44       Libc4 and libc5 know only about the BSD version.
45
46       Glibc uses the BSD version if the _BSD_SOURCE  feature  test  macro  is
47       defined  and  none  of  _POSIX_SOURCE,  _POSIX_C_SOURCE, _XOPEN_SOURCE,
48       _GNU_SOURCE, or _SVID_SOURCE is defined.  Otherwise, the System V  ver‐
49       sion is used.
50

SEE ALSO

52       kill(2),   sigaction(2),  sigprocmask(2),  sigsuspend(2),  sigblock(3),
53       sigvec(3), feature_test_macros(7)
54

COLOPHON

56       This page is part of release 3.53 of the Linux  man-pages  project.   A
57       description  of  the project, and information about reporting bugs, can
58       be found at http://www.kernel.org/doc/man-pages/.
59
60
61
62Linux                             2010-09-12                       SIGPAUSE(3)
Impressum