home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/signal/c/RCS/sigpause,v $
- * $Date: 1996/10/30 22:04:51 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: sigpause,v $
- * Revision 1.1 1996/10/30 22:04:51 unixlib
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: sigpause,v 1.1 1996/10/30 22:04:51 unixlib Rel $";
-
- /* signal.c.sigpause: BSD signal function.
-
- Written by Nick Burrett, 5 October 1996. */
-
- #include <errno.h>
- #include <signal.h>
-
- /* Set the mask of blocked signals to MASK,
- wait for a signal to arrive, and then restore the mask. */
- int sigpause (int mask)
- {
- sigset_t set;
-
- set = (sigset_t)mask;
-
- return sigsuspend (&set);
- }
-