Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159809 Details for
Bug 249072
libvirtd crash on python-virtinst installation w/o vnc
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix to avoid the crash scenario in cleanup
libvirt-remove-inactive.patch (text/plain), 3.39 KB, created by
Daniel Berrangé
on 2007-07-23 19:58:30 UTC
(
hide
)
Description:
Fix to avoid the crash scenario in cleanup
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2007-07-23 19:58:30 UTC
Size:
3.39 KB
patch
obsolete
>Index: src/qemu_driver.c >=================================================================== >RCS file: /data/cvs/libvirt/src/qemu_driver.c,v >retrieving revision 1.10 >diff -u -p -r1.10 qemu_driver.c >--- src/qemu_driver.c 23 Jul 2007 18:00:33 -0000 1.10 >+++ src/qemu_driver.c 23 Jul 2007 19:39:07 -0000 >@@ -92,9 +92,9 @@ static int qemudStartVMDaemon(virConnect > struct qemud_driver *driver, > struct qemud_vm *vm); > >-static int qemudShutdownVMDaemon(virConnectPtr conn, >- struct qemud_driver *driver, >- struct qemud_vm *vm); >+static void qemudShutdownVMDaemon(virConnectPtr conn, >+ struct qemud_driver *driver, >+ struct qemud_vm *vm); > > static int qemudStartNetworkDaemon(virConnectPtr conn, > struct qemud_driver *driver, >@@ -277,6 +277,8 @@ qemudShutdown(void) { > struct qemud_vm *next = vm->next; > if (qemudIsActiveVM(vm)) > qemudShutdownVMDaemon(NULL, qemu_driver, vm); >+ if (!vm->configFile[0]) >+ qemudRemoveInactiveVM(qemu_driver, vm); > vm = next; > } > >@@ -729,10 +731,10 @@ static int qemudVMData(struct qemud_driv > } > > >-static int qemudShutdownVMDaemon(virConnectPtr conn ATTRIBUTE_UNUSED, >- struct qemud_driver *driver, struct qemud_vm *vm) { >+static void qemudShutdownVMDaemon(virConnectPtr conn ATTRIBUTE_UNUSED, >+ struct qemud_driver *driver, struct qemud_vm *vm) { > if (!qemudIsActiveVM(vm)) >- return 0; >+ return; > > qemudLog(QEMUD_INFO, "Shutting down VM '%s'", vm->def->name); > >@@ -774,24 +776,22 @@ static int qemudShutdownVMDaemon(virConn > > driver->nactivevms--; > driver->ninactivevms++; >- >- if (!vm->configFile[0]) >- qemudRemoveInactiveVM(driver, vm); >- >- return 0; > } > > static int qemudDispatchVMLog(struct qemud_driver *driver, struct qemud_vm *vm, int fd) { >- if (qemudVMData(driver, vm, fd) < 0) >- if (qemudShutdownVMDaemon(NULL, driver, vm) < 0) >- return -1; >+ if (qemudVMData(driver, vm, fd) < 0) { >+ qemudShutdownVMDaemon(NULL, driver, vm); >+ if (!vm->configFile[0]) >+ qemudRemoveInactiveVM(driver, vm); >+ } > return 0; > } > > static int qemudDispatchVMFailure(struct qemud_driver *driver, struct qemud_vm *vm, > int fd ATTRIBUTE_UNUSED) { >- if (qemudShutdownVMDaemon(NULL, driver, vm) < 0) >- return -1; >+ qemudShutdownVMDaemon(NULL, driver, vm); >+ if (!vm->configFile[0]) >+ qemudRemoveInactiveVM(driver, vm); > return 0; > } > >@@ -1844,7 +1844,6 @@ static int qemudDomainResume(virDomainPt > static int qemudDomainDestroy(virDomainPtr dom) { > struct qemud_driver *driver = (struct qemud_driver *)dom->conn->privateData; > struct qemud_vm *vm = qemudFindVMByID(driver, dom->id); >- int ret; > > if (!vm) { > qemudReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_DOMAIN, >@@ -1852,9 +1851,11 @@ static int qemudDomainDestroy(virDomainP > return -1; > } > >- ret = qemudShutdownVMDaemon(dom->conn, driver, vm); >+ qemudShutdownVMDaemon(dom->conn, driver, vm); >+ if (!vm->configFile[0]) >+ qemudRemoveInactiveVM(driver, vm); > virFreeDomain(dom->conn, dom); >- return ret; >+ return 0; > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249072
: 159809 |
159810