|
|
1.1 ! root 1: .\" Copyright (c) 1980 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)sigpause.2 6.2 (Berkeley) 5/15/86 ! 6: .\" ! 7: .TH SIGPAUSE 2 "May 15, 1986" ! 8: .UC 4 ! 9: .SH NAME ! 10: sigpause \- atomically release blocked signals and wait for interrupt ! 11: .SH SYNOPSIS ! 12: .ft B ! 13: sigpause(sigmask) ! 14: .br ! 15: int sigmask; ! 16: .ft R ! 17: .SH DESCRIPTION ! 18: .I Sigpause ! 19: assigns ! 20: .I sigmask ! 21: to the set of masked signals ! 22: and then waits for a signal to arrive; ! 23: on return the set of masked signals is restored. ! 24: .I Sigmask ! 25: is usually 0 to indicate that no ! 26: signals are now to be blocked. ! 27: .I Sigpause ! 28: always terminates by being interrupted, returning \-1 with ! 29: .I errno ! 30: set to EINTR. ! 31: .PP ! 32: In normal usage, a signal is blocked using ! 33: .IR sigblock (2), ! 34: to begin a critical section, variables modified on the occurrence ! 35: of the signal are examined to determine that there is no work ! 36: to be done, and the process pauses awaiting work by using ! 37: .I sigpause ! 38: with the mask returned by ! 39: .IR sigblock . ! 40: .SH SEE ALSO ! 41: sigblock(2), sigvec(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.