Generating a Signal
Many kernel functions generate signals: they accomplish the first phase of signal handling—described earlier in the section "The Role of Signals“—by updating one or more process descriptors as needed. They do not directly perform the second phase of delivering the signal but, depending on the type of signal and the state of the destination processes, may wake up some processes and force them to receive the signal.
When a signal is sent to a process, either from the kernel or from another process, the kernel generates it by invoking one of the functions listed in Table 11-9.
Table 11-9. Kernel functions that generate a signal for a process
Name | Description |
|---|---|
| Sends a signal to a single process |
| Like |
| Sends a signal that cannot be explicitly ignored or blocked by the process |
| Like |
| Like |
sys_tkill( ) | System call handler of |
sys_tgkill( ) | System call handler of |
All functions in Table
11-9 end up invoking the specific_send_sig_info( ) function described
in the next section.
When a signal is sent to a whole thread group, either from the kernel or from another process, the kernel generates it by invoking ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access