From d04636bf69f64662d4d7a381269cf35bf7eaebb6 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 7 Jan 2016 00:58:29 +0530 Subject: [PATCH] new session for restart --- oml/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oml/update.py b/oml/update.py index 8e934f2..daba700 100644 --- a/oml/update.py +++ b/oml/update.py @@ -216,6 +216,7 @@ def restart(data): ''' if data.get('update'): download() - subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'restart'], close_fds=True) + subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'restart'], + close_fds=True, start_new_session=True) return {} actions.register(restart, cache=False)