Back to index

glibc  2.9
Functions
pause.c File Reference
#include <signal.h>
#include <unistd.h>
#include <sysdep-cancel.h>
#include <not-cancel.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __libc_pause (void)
 weak_alias (__libc_pause, pause)

Function Documentation

int __libc_pause ( void  )

Definition at line 28 of file pause.c.

{
  sigset_t set;

  __sigemptyset (&set);
  __sigprocmask (SIG_BLOCK, NULL, &set);

  /* pause is a cancellation point, but so is sigsuspend.
     So no need for anything special here.  */

  return __sigsuspend (&set);
}

Here is the call graph for this function:

Definition at line 40 of file pause.c.

{
  sigset_t set;

  __sigemptyset (&set);
  __sigprocmask (SIG_BLOCK, NULL, &set);

  return sigsuspend_not_cancel (&set);
}