sigpause.2
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 42 行
2
42 行
.\" SCCSID: @(#)sigpause.2 8.1 9/11/90.TH sigpause 2.SH Namesigpause \- atomically release blocked signals and wait for interrupt.SH Syntax.ft Bsigpause(sigmask).brint sigmask;.ft R.SH Description.NXR "sigpause system call".NXA "sigblock system call" "sigpause system call".NXR "signal" "releasing blocked"The.PN sigpausesystem callassigns .I sigmaskto the set of masked signalsand then waits for a signal to arrive.On return, the set of masked signals is restored.The.I sigmaskis usually 0 to indicate that nosignals are now to be blocked.The.PN sigpausealways terminates by being interrupted, returning EINTR..PPIn normal usage, a signal is blocked using.MS sigblock 2 at the beginning of a critical section of code.Variables modified on the occurrenceof the signal are examined to determine if there is any workto be done. The process pauses, awaiting work, by using.PN sigpausewith the mask returned by.PN sigblock ..SH See Alsosigblock(2), sigvec(2)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?