提交 68e5e467 编写于 作者: L Laurent Léonard 提交者: Eric Blake

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
上级 e4bc372e
......@@ -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....]
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册