Commit 4e7a652
committed
fix: prevent killPromise from hanging indefinitely
- Add .catch() handler on child.exited promise
- Ensure setTimeout always calls resolve() after SIGKILL
- Wrap child.kill() in try-catch for error handling
- Match the pattern used in cleanup() function
This prevents the rebuild from freezing if the process doesn't
respond to signals or if child.exited rejects.1 parent b095993 commit 4e7a652
1 file changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
341 | 355 | | |
| 356 | + | |
342 | 357 | | |
343 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
344 | 363 | | |
345 | 364 | | |
346 | 365 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
353 | 371 | | |
| 372 | + | |
| 373 | + | |
354 | 374 | | |
355 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
356 | 378 | | |
357 | 379 | | |
358 | 380 | | |
| |||
0 commit comments