appliance: When valgrinding daemon + error path, sleep so valgrind messages are seen.

This commit is contained in:
Richard W.M. Jones
2013-10-18 11:46:16 +01:00
parent dfaf417fef
commit 3b69792cd5

View File

@@ -126,7 +126,13 @@ if ! grep -sq guestfs_rescue=1 /proc/cmdline; then
# Run guestfsd, under valgrind if asked.
$vg guestfsd
if [ $? -eq 119 ]; then echo "DAEMON VALGRIND FAILED"; fi
if [ $? -eq 119 ]; then
echo "DAEMON VALGRIND FAILED"
# Sleep so valgrind messages are seen by the host. Note this
# only happens in non-production builds
# (--enable-valgrind-daemon) + on an error path.
sleep 10
fi
else
# Run virt-rescue shell.