Bug 1018275

Summary: virt-sandbox consumes 100% cpu when piping input
Product: [Community] Virtualization Tools Reporter: Daniel BerrangĂ© <berrange>
Component: libvirt-sandboxAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ccui, dyuan, mjenner, weizhan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-15 13:33:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daniel Berrangé 2013-10-11 15:24:50 UTC
Description of problem:
If running virt-sandbox with a pipe for stdin

eg

  virt-sandbox -c lxc:/// /bin/date < /dev/null

then it consumes 100% cpu and never exits. Something is broken in its handling of consoles when not using a tty.

Version-Release number of selected component (if applicable):
libvirt-sandbox-0.5.0-5.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1.   virt-sandbox -c lxc:/// /bin/date < /dev/null
2.
3.

Actual results:
100% cpu usage, never exits

Expected results:
Prints date and exits.

Additional info: