Bug 1018275 - virt-sandbox consumes 100% cpu when piping input
Summary: virt-sandbox consumes 100% cpu when piping input
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt-sandbox
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-11 15:24 UTC by Daniel Berrangé
Modified: 2020-04-15 13:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-15 13:33:45 UTC
Embargoed:


Attachments (Terms of Use)

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:


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