Commit 22ceb698 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

catch more termination signals.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42248 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2cf63c4
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
############################################################################## ##############################################################################
import gc import gc
from signal import signal, SIGHUP from signal import signal, SIGTERM, SIGINT, SIGQUIT, SIGHUP
from os import path, mkdir from os import path, mkdir
import os import os
...@@ -119,6 +119,9 @@ def application(global_config, **local_config): ...@@ -119,6 +119,9 @@ def application(global_config, **local_config):
timeout=timeout_response) timeout=timeout_response)
# Signal to stop all processes # Signal to stop all processes
signal(SIGTERM, stopProcesses)
signal(SIGINT, stopProcesses)
signal(SIGQUIT, stopProcesses)
signal(SIGHUP, stopProcesses) signal(SIGHUP, stopProcesses)
# Load all filters # Load all filters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment