Back to index

glibc  2.9
Defines | Functions
sighold.c File Reference
#include <stddef.h>
#include <signal.h>

Go to the source code of this file.


#define __need_NULL


int sighold (int sig)

Define Documentation

#define __need_NULL

Definition at line 21 of file sighold.c.

Function Documentation

int sighold ( int  sig)

Definition at line 26 of file sighold.c.

  sigset_t set;

  /* Retrieve current signal set.  */
  if (__sigprocmask (SIG_SETMASK, NULL, &set) < 0)
    return -1;

  /* Add the specified signal.  */
  if (sigaddset (&set, sig) < 0)
    return -1;

  /* Set the new mask.  */
  return __sigprocmask (SIG_SETMASK, &set, NULL);

Here is the call graph for this function:

Here is the caller graph for this function: