From a1b4a878641dd096e2b047e377d3f23045e481f6 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Mon, 20 May 2019 11:09:27 +0200 Subject: [PATCH] Replace cleanup() with stop() --- solvable/src/event_handler_main.py | 8 ++++---- solvable/src/pipe_io_main.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 5be6423..39e38fd 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -151,12 +151,12 @@ def main(): terminal.historymonitor.subscribe_callback(cenator) event_handlers = EventHandlerBase.get_local_instances() - def cleanup(sig, frame): + def stop(sig, frame): for eh in event_handlers: - eh.cleanup() + eh.stop() exit(0) - signal(SIGTERM, cleanup) - signal(SIGINT, cleanup) + signal(SIGTERM, stop) + signal(SIGINT, stop) IOLoop.instance().start() diff --git a/solvable/src/pipe_io_main.py b/solvable/src/pipe_io_main.py index 1edd1ab..c81787e 100644 --- a/solvable/src/pipe_io_main.py +++ b/solvable/src/pipe_io_main.py @@ -14,11 +14,11 @@ if __name__ == '__main__': ) event_handlers = EventHandlerBase.get_local_instances() - def cleanup(sig, frame): + def stop(sig, frame): for eh in event_handlers: - eh.cleanup() + eh.stop() exit(0) - signal(SIGTERM, cleanup) - signal(SIGINT, cleanup) + signal(SIGTERM, stop) + signal(SIGINT, stop) IOLoop.instance().start()