Re: [libvirt] [PATCH] libvirt-tck: Ignore SIGPIPE in 051-daemon-hook.t

2014-03-14 Thread Mike Latimer
Sorry for the slow response, I've been distracted with other projects. On Monday, March 10, 2014 09:25:37 PM Osier Yang wrote: Hm, $tck-cleanup() doesn't close the connection, it just destroy and undefine the existing domains, networks, and pools. snip sub reset { my $self = shift;

Re: [libvirt] [PATCH] libvirt-tck: Ignore SIGPIPE in 051-daemon-hook.t

2014-03-10 Thread Osier Yang
On 07/03/14 23:46, Mike Latimer wrote: On Friday, March 07, 2014 05:16:48 PM Osier Yang wrote: $hook-cleanup(); + +# Restarting libvirtd broke the tck connection, so ignore sigpipe and +# undefine $tck to avoid a return code of 141 +$SIG{PIPE} = 'IGNORE'; +undef $tck; We

Re: [libvirt] [PATCH] libvirt-tck: Ignore SIGPIPE in 051-daemon-hook.t

2014-03-07 Thread Osier Yang
On 07/03/14 01:11, Mike Latimer wrote: This test completes successfully, but results in a return code of 141 due to a broken pipe when restarting libvirtd. This patch just masks the SIGPIPE and undefines $tck to avoid the 141 return code. If there is a way to reestablish the tck connection after

Re: [libvirt] [PATCH] libvirt-tck: Ignore SIGPIPE in 051-daemon-hook.t

2014-03-07 Thread Mike Latimer
On Friday, March 07, 2014 05:16:48 PM Osier Yang wrote: $hook-cleanup(); + +# Restarting libvirtd broke the tck connection, so ignore sigpipe and +# undefine $tck to avoid a return code of 141 +$SIG{PIPE} = 'IGNORE'; +undef $tck; We should get the libvirt

[libvirt] [PATCH] libvirt-tck: Ignore SIGPIPE in 051-daemon-hook.t

2014-03-06 Thread Mike Latimer
This test completes successfully, but results in a return code of 141 due to a broken pipe when restarting libvirtd. This patch just masks the SIGPIPE and undefines $tck to avoid the 141 return code. If there is a way to reestablish the tck connection after the restart, that would be a better