Commit b59a1ee
Fix cooperative scheduling busy-wait issue
The wait_for_pid_exit function was spinning in a tight loop without yielding
control, preventing the context switch from actually happening. This fix
replaces the spin loop with yield_current() to allow the scheduler to run
the target process.
This is the critical fix for the CI syscall test failure.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cb29257 commit b59a1ee
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
373 | 372 | | |
374 | 373 | | |
375 | 374 | | |
| |||
0 commit comments