Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-tests: use empty fifo instead of /dev/zero if stdin is /dev/null #311

Merged
merged 1 commit into from
May 26, 2021

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented May 21, 2021

To work around a qemu bug [1] we redirect stdin of virtme-run from
/dev/zero. This has the possible downside that a read from /dev/zero
always returns data. This means that anything reading stdin in the
VM will get a bunch of garbage.

Detect a closed stdin and replace it with an empty fifo.

1: amluto/virtme#33

To work around a qemu bug [1] we redirect stdin of virtme-run from
/dev/zero. This has the possible downside that a read from /dev/zero
always returns data. This means that anything reading stdin in the
VM will get a bunch of garbage.

Detect a closed stdin and replace it with an empty fifo.

1: amluto/virtme#33
@lmb lmb merged commit 34df476 into master May 26, 2021
@lmb lmb deleted the lmb/mkfifo branch May 26, 2021 07:25
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.

1 participant