[or-cvs] r19139: {torvm} If we rely on reboot to exit in bundle mode we should probab (torvm/trunk/build/win32/src/torvm-w32)
coderman at seul.org
coderman at seul.org
Fri Mar 27 02:53:04 UTC 2009
Author: coderman
Date: 2009-03-26 22:53:04 -0400 (Thu, 26 Mar 2009)
New Revision: 19139
Modified:
torvm/trunk/build/win32/src/torvm-w32/torvm.c
Log:
If we rely on reboot to exit in bundle mode we should probably tell Qemu about it...
Modified: torvm/trunk/build/win32/src/torvm-w32/torvm.c
===================================================================
--- torvm/trunk/build/win32/src/torvm-w32/torvm.c 2009-03-27 01:17:09 UTC (rev 19138)
+++ torvm/trunk/build/win32/src/torvm-w32/torvm.c 2009-03-27 02:53:04 UTC (rev 19139)
@@ -1722,7 +1722,7 @@
TCHAR *cmd = malloc(CMDMAX);
/* TODO: clean this up once the msys path munging works. kernel and hdd need to be unixy paths */
snprintf (cmd, CMDMAX -1,
- "\"%s\" -L . -kernel ../lib/vmlinuz -hda ../state/hdd.img -m %d -std-vga", qemubin, QEMU_DEF_MEM);
+ "\"%s\" -L . -no-reboot -kernel ../lib/vmlinuz -hda ../state/hdd.img -m %d -std-vga", qemubin, QEMU_DEF_MEM);
ldebug ("Launching Qemu with cmd: %s", cmd);
if( !CreateProcess(NULL,
cmd,
@@ -1894,7 +1894,7 @@
cmd = malloc(CMDMAX);
if (tapname) {
snprintf (cmd, CMDMAX -1,
- "\"%s\" -name \"Tor VM \" -L . -kernel ../lib/vmlinuz -append \"%s\" -hda ../state/hdd.img -m %d -std-vga -net nic,model=pcnet,macaddr=%s -net pcap,devicename=\"%s\" -net nic,vlan=1,model=pcnet -net tap,vlan=1,ifname=\"%s\"",
+ "\"%s\" -name \"Tor VM \" -L . -no-reboot -kernel ../lib/vmlinuz -append \"%s\" -hda ../state/hdd.img -m %d -std-vga -net nic,model=pcnet,macaddr=%s -net pcap,devicename=\"%s\" -net nic,vlan=1,model=pcnet -net tap,vlan=1,ifname=\"%s\"",
qemubin,
cmdline,
QEMU_DEF_MEM,
@@ -1904,7 +1904,7 @@
}
else {
snprintf (cmd, CMDMAX -1,
- "\"%s\" -name \"Tor VM \" -L . -kernel ../lib/vmlinuz -append \"%s\" -hda ../state/hdd.img -m %d -std-vga -net nic,model=pcnet,macaddr=%s -net pcap,devicename=\"%s\"",
+ "\"%s\" -name \"Tor VM \" -L . -no-reboot -kernel ../lib/vmlinuz -append \"%s\" -hda ../state/hdd.img -m %d -std-vga -net nic,model=pcnet,macaddr=%s -net pcap,devicename=\"%s\"",
qemubin,
cmdline,
QEMU_DEF_MEM,
More information about the tor-commits
mailing list