Skip to content

scripts/run: Redirect QEMU stdin to /dev/null to prevent SIGTTIN#108

Open
CristianAndrei1423 wants to merge 1 commit into
unikraft:mainfrom
CristianAndrei1423:main
Open

scripts/run: Redirect QEMU stdin to /dev/null to prevent SIGTTIN#108
CristianAndrei1423 wants to merge 1 commit into
unikraft:mainfrom
CristianAndrei1423:main

Conversation

@CristianAndrei1423

Copy link
Copy Markdown

Bug that is fixed : whenever the testing scripts boots up the QEMU Virtual Machine, it is put in background. Because of that, it is not allowed to read from the terminal, so the kernel sends SIGTTIN and suspends it, making the test fail automatically.

Fix : Just redirect stdin to /dev/null so that QEMU gets EOF instead. The fix was tested with wrapper.sh on nginx.

@vTusharr

vTusharr commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Ah nice will incorporate this

@CristianAndrei1423

Copy link
Copy Markdown
Author

One detail that i need to add is that QEMU vm's read from stdin only when given the -nographic flag. I specifically changed only the scripts that had this flag given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants