aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-15 08:16:42 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-15 08:16:42 +0100
commit51f36202c47f6bb84a67c6e387c1b7afb69c1347 (patch)
treeff00dfee90ae69b2b800d4621694971ec98c3f84 /stubdom
parentb1fd365cece2833c767ee8f96c421ee32e467af5 (diff)
downloadxen-51f36202c47f6bb84a67c6e387c1b7afb69c1347.tar.gz
xen-51f36202c47f6bb84a67c6e387c1b7afb69c1347.tar.bz2
xen-51f36202c47f6bb84a67c6e387c1b7afb69c1347.zip
xend: destroy stubdoms synchronously
This patch makes the destruction of stubdoms a synchronous event, therefore it is no longer possible to run out of memory when rebooting a guest because the stubdom of the old guest is always destroyed before the creation of the new guest. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'stubdom')
-rw-r--r--stubdom/stubdom-dm8
1 files changed, 2 insertions, 6 deletions
diff --git a/stubdom/stubdom-dm b/stubdom/stubdom-dm
index b76dab278b..bf77d1fad1 100644
--- a/stubdom/stubdom-dm
+++ b/stubdom/stubdom-dm
@@ -81,12 +81,8 @@ done
term() {
kill %1
- (
- [ -n "$vncpid" ] && kill -9 $vncpid
- rm ${stubdom_configdir}/$domname-dm
- xm destroy $domname-dm
- ) &
- # We need to exit immediately so as to let xend do the commands above
+ [ -n "$vncpid" ] && kill -9 $vncpid
+ rm ${stubdom_configdir}/$domname-dm
exit 0
}