Syntax error "Bad fd number" when stopping libvirt-guests

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

 



Hi,

When libvirt-guests is being stopped, I get the following message:
$Running guests on default URI: test-vm
$Suspending guests on default URI...
$Suspending test-vm: /etc/init.d/libvirt-guests: 340: Syntax error: Bad fd 
number

The size of RAM already dumped should be displayed instead.

The attached patch fixes that issue.

-- 
Laurent Léonard
--- a/tools/libvirt-guests.init.in
+++ b/tools/libvirt-guests.init.in
@@ -177,7 +177,7 @@ suspend_guest()
     virsh_pid=$!
     while true; do
         sleep 1
-        kill -0 $virsh_pid >&/dev/null || break
+        kill -0 $virsh_pid 2>/dev/null || break
         progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                    awk '/^Data processed:/{print $3, $4}')
         if [ -n "$progress" ]; then
--
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]