February 2020
Intermediate to advanced
292 pages
8h 54m
English
So, what does happen to signals when a process forks (or executes) another one? The following table will help you to understand how to deal with signals with a process-child relationship:
| Signal Behavior | Process Fork | Process Exec |
| Default | Inherited | Inherited |
| Ignored | Inherited | Inherited |
| Handled | Inherited | Not inherited |
At this stage, you should not be surprised that, when a process forks another process, the child essentially inherits all the behaviors of the parent. When a process executes another task (with exec), it inherits the default behavior and the ignored behavior, but it does not inherit the handled method that is implemented.
Read now
Unlock full access