Bug 1018275 - virt-sandbox consumes 100% cpu when piping input
virt-sandbox consumes 100% cpu when piping input
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: libvirt-sandbox (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Libvirt Maintainers
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-11 11:24 EDT by Daniel Berrange
Modified: 2014-09-21 18:53 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Berrange 2013-10-11 11:24:50 EDT
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:

Note You need to log in before you can comment on or make changes to this bug.