From d546fffb74b6340fe2076f588db52d0bb6296b9f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 6 Oct 2015 10:32:01 +0200 Subject: Kill all the zombies --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 8a7c971..1198c32 100644 --- a/daemon.py +++ b/daemon.py @@ -3,7 +3,10 @@ if __name__ == '__main__': import os + import signal import logging logging.basicConfig(filename=os.environ.get('CODEQ_SERVER_LOG') or 'codeq-server.log', level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s') import server + + signal.signal(signal.SIGCHLD, signal.SIG_IGN) server.socket.serve_forever() -- cgit v1.2.1 From d6aa9b9dfba1233ba5e6ce7229689cef8c7a6cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Tue, 6 Oct 2015 11:28:54 +0200 Subject: Bugfix: revert to request.session.update_settings() in the Settings class. --- server/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers.py b/server/handlers.py index a7e0fef..a1bfbd7 100644 --- a/server/handlers.py +++ b/server/handlers.py @@ -100,7 +100,7 @@ class Settings(CodeqService): request.reply({'code': 1, 'message': 'New settings not provided'}) else: try: - request.user_session.update_settings(settings) + request.session.update_settings(settings) request.session.write_settings_to_db() except NoSuchSession: request.reply({'code': 2, 'message': 'No such session'}) -- cgit v1.2.1