mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Catch exception from dumpCore when inside refreshShutdown.
Thanks to John Levon <levon@movementarian.org> for diagnosis and suggesting the fix. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
415630a22d
commit
9bff7e28c6
1 file changed
+10
-2
@@ -972,7 +972,12 @@ class XendDomainInfo:
|
||||
self._writeVm(LAST_SHUTDOWN_REASON, 'crash')
|
||||
|
||||
if xroot.get_enable_dump():
|
||||
self.dumpCore()
|
||||
try:
|
||||
self.dumpCore()
|
||||
except XendError:
|
||||
# This error has been logged -- there's nothing more
|
||||
# we can do in this context.
|
||||
pass
|
||||
|
||||
restart_reason = 'crash'
|
||||
self._stateSet(DOM_STATE_HALTED)
|
||||
@@ -1164,7 +1169,10 @@ class XendDomainInfo:
|
||||
#
|
||||
|
||||
def dumpCore(self, corefile = None):
|
||||
"""Create a core dump for this domain. Nothrow guarantee."""
|
||||
"""Create a core dump for this domain.
|
||||
|
||||
@raise: XendError if core dumping failed.
|
||||
"""
|
||||
|
||||
try:
|
||||
if not corefile:
|
||||
|
||||