Commit 37cf3aa
Fix QEMU hanging in test mode when stdout is piped
boot.sh --test now redirects stdin from /dev/null before exec'ing QEMU,
so QEMU's -nographic serial setup never calls tcsetattr() on a real
terminal. When the caller pipes stdout (e.g., through tee) or wraps
boot.sh with timeout(1), QEMU runs in a process group that is not the
terminal's foreground group; a tcsetattr() call then receives SIGTTOU
and stops the process (state Tl), producing no output.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 89c800f commit 37cf3aa
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments