Skip to content

Commit

Permalink
guessing as to how to abort segfaulted processes
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarmot committed Mar 4, 2017
1 parent a6fdd3f commit baf0ffc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geocamPycroraptor2/service.py
Expand Up @@ -424,7 +424,14 @@ def _cleanup(self):
self._eventLogger.warning('status: %s', newStatus)
if status0 != statuslib.SEGFAULT:
self._postExitCleanup()
else:
self._forceAbort()
self._postExitCleanup()


def _forceAbort(self):
os.abort()

def _postExitCleanup(self):
self._proc = None
for job in self._jobs:
Expand Down

0 comments on commit baf0ffc

Please sign in to comment.