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

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
This commit is contained in:
Laurent Léonard 2010-12-05 18:53:26 +01:00 committed by Eric Blake
parent e4bc372e1b
commit 68e5e4672a
2 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@ Patches have also been contributed by:
Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Wen Congyang <wency@cn.fujitsu.com>
Hu Tao <hutao@cn.fujitsu.com>
Laurent Léonard <laurent@open-minds.org>
[....send patches to get your name here....]

View File

@ -177,7 +177,7 @@ suspend_guest()
virsh_pid=$!
while true; do
sleep 1
kill -0 $virsh_pid >&/dev/null || break
kill -0 $virsh_pid >/dev/null 2>&1 || break
progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
awk '/^Data processed:/{print $3, $4}')
if [ -n "$progress" ]; then