[libvirt] [PATCH] virsh: Fix job watching when STDIN is not a tty

Ján Tomko jtomko at redhat.com
Tue Oct 22 14:26:01 UTC 2013


On 10/22/2013 04:05 PM, Peter Krempa wrote:
> In commit b46c4787dde79b015dad67dedda4ccf6ff1a3082 I changed the code to
> watch long running jobs in virsh. Unfortunately I didn't take into
> account that poll may get a hangup if the terminal is not a TTY and will
> be closed.
> 
> This patch avoids polling the STDIN fd when there's no TTY.
> ---
>  tools/virsh-domain.c | 7 ++++++-
>  tools/virsh.c        | 7 +++++++
>  tools/virsh.h        | 2 ++
>  3 files changed, 15 insertions(+), 1 deletion(-)

ACK

Jan




More information about the libvir-list mailing list