sigblock, siggetmask, sigsetmask, sigmask - manipulate the signal mask
int sigblock(int mask);
int siggetmask(void);
int sigsetmask(int mask);
The sigblock system call adds the signals specified in mask to the set of signals currently being blocked from delivery.
The sigsetmask system call replaces the set of blocked signals totally with a new set specified in mask. Signals are blocked if the corresponding bit in mask is a 1.
The current set of blocked signals can be obtained using siggetmask.
The sigmask macro is provided to construct the mask for a given signum.
sigsetmask and sigblock return the previous set of masked signals.
It is not possible to block SIGKILL or SIGSTOP - this restriction is silently imposed by the system.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |