Re: [PATCH] command: avoid hanging on daemon processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/21/2010 12:40 PM, Laine Stump wrote:
> On 12/21/2010 01:54 PM, Eric Blake wrote:
>> * src/util/command.c (virCommandRun): Don't capture output on
>> daemons.
>> * tests/commandtest.c (test18): Expose the bug.
>> Reported by Laine Stump.
>> ---
>>
>> Even though 'test4' in commandtest created a daemon, the daemon
>> exits rather quickly, so that no one noticed the problem.  And
>> the existing qemu daemon use of virCommand was supplying log
>> file descriptors, rather than letting virCommand capture output.
>>
>> I've verified that with just the tests/ changes, that the testsuite
>> fails (termination due to SIGALRM).
>>
>>   src/util/command.c  |   24 ++++++++++++++----------
>>   tests/commandtest.c |   42 ++++++++++++++++++++++++++++++++++++++++++
>>   2 files changed, 56 insertions(+), 10 deletions(-)
> 
> ACK. This works properly for the case where it didn't work previously.

Now pushed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]