|
|
1.1 ! root 1: .TH SIGPAUSE 2 "7 July 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: sigpause \- atomically release blocked signals and wait for interrupt ! 5: .SH SYNOPSIS ! 6: .ft B ! 7: sigpause(sigmask) ! 8: .br ! 9: int sigmask; ! 10: .ft R ! 11: .SH DESCRIPTION ! 12: .I Sigpause ! 13: assigns ! 14: .I sigmask ! 15: to the set of masked signals ! 16: and then waits for a signal to arrive; ! 17: on return the set of masked signals is restored. ! 18: .I Sigmask ! 19: is usually 0 to indicate that no ! 20: signals are now to be blocked. ! 21: .I Sigpause ! 22: always terminates by being interrupted, returning EINTR. ! 23: .PP ! 24: In normal usage, a signal is blocked using ! 25: .IR sigblock (2), ! 26: to begin a critical section, variables modified on the occurance ! 27: of the signal are examined to determine that there is no work ! 28: to be done, and the process pauses awaiting work by using ! 29: .I sigpause ! 30: with the mask returned by ! 31: .IR sigblock . ! 32: .SH SEE ALSO ! 33: sigblock(2), sigvec(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.