File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 397397\end {slide }
398398
399399\begin {itemize }
400+ \item for manipulating signal sets, use \funnm {sigaddset}(),
401+ \funnm {sigdelset}(), \funnm {sigemptyset}(), \funnm {sigfillset}(),
402+ \funnm {sigismember}()
400403\item If \texttt {act == NULL } you only get the present setting and nothing is
401404changed. If not interested in previous setting, use \texttt {NULL } for
402405\emph {\texttt {oact } }.
458461void handler(int sig)
459462\{ write(2," !!! TIMEOUT !!! \bs{}n", 17); \}
460463
461- int main(void)
464+ int main(void)
462465\{
463466 char buf[1024]; struct sigaction act; int sz;
464467 act.sa\_handler = handler;
521524\item \emph {how } -- \texttt {SIG\_ BLOCK } adds signals to block,
522525\texttt {SIG\_ UNBLOCK } for removing signals, for a complete mask change
523526use \texttt {SIG\_ SETMASK }
524- \item for manipulating signal sets, use \funnm {sigaddset}(),
525- \funnm {sigdelset}(), \funnm {sigemptyset}(), \funnm {sigfillset}(),
526- \funnm {sigismember}()
527527\end {itemize }
528528ifdef([[[NOSPELLCHECK]]], [[[
529529\texttt {int \funnm {sigpending}(sigset\_ t *\emph {set }); }
You can’t perform that action at this time.
0 commit comments