Repository navigation
Commit e81f854
authored
[test] Deflake
Remove the racing `printf("SIGTERM sent\n")` call on the main thread
immediately after `pthread_kill(child_thread, SIGTERM)`, which raced
with `child_thread` printing from its `SIGTERM` signal handler. Also
wait for `got_sigusr1` before `pthread_join` so all output lines have a
strict happens-before ordering.
Fixes: #24725test_pthread_kill (#27819)1 parent 941e514 commit e81f854
3 files changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | | - | |
82 | | - | |
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
86 | | - | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13620 | 13620 | | |
13621 | 13621 | | |
13622 | 13622 | | |
13623 | | - | |
13624 | 13623 | | |
13625 | 13624 | | |
13626 | 13625 | | |
| |||
0 commit comments