Commit 05c9d31
authored
Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
1 parent b5c8cfa commit 05c9d31
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4149 | 4149 | | |
4150 | 4150 | | |
4151 | 4151 | | |
4152 | | - | |
4153 | | - | |
4154 | 4152 | | |
4155 | 4153 | | |
| 4154 | + | |
4156 | 4155 | | |
4157 | 4156 | | |
4158 | 4157 | | |
4159 | 4158 | | |
4160 | 4159 | | |
4161 | 4160 | | |
4162 | 4161 | | |
4163 | | - | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
4164 | 4170 | | |
4165 | 4171 | | |
4166 | 4172 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments