Commit 7828d37
committed
fix(test): cancel after child prints ready, not at proc registration
The old wait loop polled _live_procs, which is populated the moment
Popen() returns — before the child interpreter finishes site init. On
CI the SIGINT then landed during interpreter startup and the child died
with a KeyboardInterrupt traceback (exit 1) instead of the handler's
exit 130. Cancel from the on_line callback at the child's own "ready"
marker instead: the handler is guaranteed installed by then.1 parent 971d88a commit 7828d37
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
155 | | - | |
| 153 | + | |
156 | 154 | | |
157 | 155 | | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
0 commit comments