Commit 640357b
committed
fix: only serialize PTY spawn on musl, not entire lifetime
The previous fix held the mutex for the Terminal's entire lifetime,
which serialized all PTY tests within a binary. With 8 tests having
5-second timeouts, later tests would time out waiting for the lock
(4/10 CI runs failed with exit code 101).
The SIGSEGV occurs in musl's sysconf/fcntl during openpty + fork/exec,
not during normal FD I/O on already-open PTYs. Restrict the lock to
just the spawn section so tests can run concurrently after creation.
https://claude.ai/code/session_011H8UR3gS6hoyQAf2x7Dfw81 parent 73de573 commit 640357b
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
| |||
262 | 256 | | |
263 | 257 | | |
264 | 258 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
270 | 262 | | |
271 | | - | |
| 263 | + | |
272 | 264 | | |
273 | | - | |
| 265 | + | |
274 | 266 | | |
275 | 267 | | |
276 | 268 | | |
| |||
322 | 314 | | |
323 | 315 | | |
324 | 316 | | |
325 | | - | |
326 | | - | |
327 | 317 | | |
328 | 318 | | |
329 | 319 | | |
0 commit comments