Commit 0000b3c
committed
Block SIGCHLD before booting LKL
Before all kernel threads are created, we have to block
SIGCHLD and let all childs inherit the blocked mask.
Without this, SIGCHLD (from the supervised child process
exiting) may be delivered to an LKL thread where the default
ignore action silently discards it, causing the signalfd in
the supervisor poll loop to never become readable.
Change-Id: Ib3256f044c5b8ce9c34c223beb294c207a1f47ab1 parent 26de02c commit 0000b3c
2 files changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
| 495 | + | |
| 496 | + | |
498 | 497 | | |
499 | 498 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 499 | + | |
| 500 | + | |
505 | 501 | | |
506 | 502 | | |
507 | 503 | | |
| |||
0 commit comments