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:
Ewan Mellor committed 2007-01-05 16:11:49 +00:00
1 parent 415630a22d
commit 9bff7e28c6
1 file changed
+10 -2
+10 -2
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.