Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devices/console: Fix a bug which would cause libkrun to hang on exit
Make PortInputEmpty and PortInputSigInt `wait_until_readable` implementations poll the stopfd EventFd to ensure the thread eventually exits. (The thread is joined in Port::shutdown method causing the hang). To replicate the hang, the stdin must not be a terminal. For example you can use a pipe - `echo hello | ./chroot_vm rootfs_fedora /bin/cat` would hang without this fix. This seems to be a regresion introduced by the commit: 4076b7: devices/console: implement reset method Signed-off-by: Matej Hrica <mhrica@redhat.com>
- Loading branch information