diff --git a/management/univention-management-console/src/univention/management/console/protocol/session.py b/management/univention-management-console/src/univention/management/console/protocol/session.py index 6b4365a..8c08795 100644 --- a/management/univention-management-console/src/univention/management/console/protocol/session.py +++ b/management/univention-management-console/src/univention/management/console/protocol/session.py @@ -310,7 +310,10 @@ def _purge_child(self, module_name): if module_name in self.__processes: CORE.process('module %s is still running - purging module out of memory' % module_name) pid = self.__processes[module_name].pid() - os.kill(pid, 9) + try: + os.kill(pid, 9) + except OSError as exc: + CORE.warn('Failed to kill module %s: %s' % (module_name, exc)) return False def handle_request_exit(self, msg):