1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: sigsetmask
Command Library

NAME

sigblock, siggetmask, sigsetmask, sigmask - manipulate the signal mask  

SYNOPSIS

#include <signal.h>

int sigblock(int mask);

int siggetmask(void);

int sigsetmask(int mask);

int sigmask(int signum);  

DESCRIPTION

This interface is made obsolete by sigprocmask(2).

The sigblock system call adds the signals specified in mask to the set of signals currently being blocked from delivery.

The sigsetmask system call replaces the set of blocked signals totally with a new set specified in mask. Signals are blocked if the corresponding bit in mask is a 1.

The current set of blocked signals can be obtained using siggetmask.

The sigmask macro is provided to construct the mask for a given signum.

 

RETURN VALUE

siggetmask returns the current set of masked signals.

sigsetmask and sigblock return the previous set of masked signals.  

SEE ALSO

kill(2), sigprocmask(2), signal(7)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.