aboutsummaryrefslogtreecommitdiffstats
path: root/tools/domain_builder/dom_builder.c
diff options
context:
space:
mode:
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2003-02-20 16:02:43 +0000
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2003-02-20 16:02:43 +0000
commitf0568abaa30c92d2e92c5b705d34b29dc55cd987 (patch)
tree3c311ce9d1154951d2fb400533005daba56bd247 /tools/domain_builder/dom_builder.c
parent10335d97eb98cff1df1cf1d1889e58898d138210 (diff)
downloadxen-f0568abaa30c92d2e92c5b705d34b29dc55cd987.tar.gz
xen-f0568abaa30c92d2e92c5b705d34b29dc55cd987.tar.bz2
xen-f0568abaa30c92d2e92c5b705d34b29dc55cd987.zip
bitkeeper revision 1.76.1.1 (3e54fc23zcQZlR65KsPYjjBI9M-6Hg)
modifications to newdom scripts. Example invocations: newdom <size> <image> <ip> <root details> really ./newdom 16000 ../../../xenolinux-2.4.16-kdb/arch/xeno/boot/image 128.232.35.xxx root=/dev/nfs nfsroot=/usr/groups/srgboot/hhh/roots/root1 really ./newdom 16000 ../../../xenolinux-2.4.16-kdb/arch/xeno/boot/image 128.232.35.xxx root=/dev/xhdaNNN [fill in hhh, xxx and NNN as appropriate]
Diffstat (limited to 'tools/domain_builder/dom_builder.c')
-rw-r--r--tools/domain_builder/dom_builder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/domain_builder/dom_builder.c b/tools/domain_builder/dom_builder.c
index d2df002a67..18bc643734 100644
--- a/tools/domain_builder/dom_builder.c
+++ b/tools/domain_builder/dom_builder.c
@@ -474,7 +474,10 @@ int main(int argc, char **argv)
if(launch_domain(meminfo) != 0)
ret = -1;
- free(meminfo);
+
out:
- return ret;
+ if( ret >= 0 )
+ return meminfo->domain;
+ else
+ return ret;
}