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

Peter Krempa pkrempa at redhat.com
Tue Oct 22 14:33:26 UTC 2013


On 10/22/13 15:26, Ján Tomko wrote:
> 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
> 

Pushed; Thanks.

Peter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131022/ad89ea53/attachment-0001.sig>


More information about the libvir-list mailing list