Author: cwittich
Date: Thu Mar 26 00:45:45 2009
New Revision: 40241
URL:
http://svn.reactos.org/svn/reactos?rev=40241&view=rev
Log:
kill the vm if it is already running (quick and dirty)
Modified:
trunk/tools/sysreg2/virt.c
Modified: trunk/tools/sysreg2/virt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/virt.c?rev=40241&…
==============================================================================
--- trunk/tools/sysreg2/virt.c [iso-8859-1] (original)
+++ trunk/tools/sysreg2/virt.c [iso-8859-1] Thu Mar 26 00:45:45 2009
@@ -167,8 +167,9 @@
if (IsVirtualMachineRunning(vConn, AppSettings.Name))
{
- SysregPrintf("Error: Virtual Machine is already running.\n");
- goto cleanup;
+ /* SysregPrintf("Error: Virtual Machine is already running.\n");
+ goto cleanup; */
+ system("virsh destroy ReactOS");
}
/* If the HD image already exists, delete it */