Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SIGBLOCK(2)		      System Calls Manual		   SIGBLOCK(2)

NAME
       sigblock, sigmask - block signals

SYNOPSIS
       #include	<signal.h>

       int sigblock(mask);
       int mask;

       int sigmask(signum)

DESCRIPTION
       sigblock()  adds	 the  signals  specified in mask to the	set of signals
       currently being blocked from delivery.  A signal	is blocked if the  ap-
       propriate  bit in mask is set.  The macro sigmask() is provided to con-
       struct the signal mask for a given signum.  sigblock() returns the pre-
       vious signal mask, which	may be restored	using sigsetmask(2).

       It  is  not  possible to	block SIGKILL or SIGSTOP.  The system silently
       imposes this restriction.

RETURN VALUES
       sigblock() returns the previous signal mask.

       The sigmask() macro returns the mask for	the given signal number.

SEE ALSO
       kill(2V), sigsetmask(2),	sigvec(2), signal(3V)

				21 January 1990			   SIGBLOCK(2)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sigblock&sektion=2&manpath=SunOS+4.1.3>

home | help