Commit bb86364e authored by Nicolas Delaby's avatar Nicolas Delaby

Follow signal API


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df6208d3
...@@ -37,7 +37,7 @@ from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication ...@@ -37,7 +37,7 @@ from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication
from cloudooo.utils.utils import convertStringToBool, configureLogger from cloudooo.utils.utils import convertStringToBool, configureLogger
from cloudooo.handler.ooo.mimemapper import mimemapper from cloudooo.handler.ooo.mimemapper import mimemapper
def stopProcesses(): def stopProcesses(signum, frame):
monitor.stop() monitor.stop()
xvfb.stop() xvfb.stop()
openoffice.stop() openoffice.stop()
...@@ -104,7 +104,7 @@ def application(global_config, **local_config): ...@@ -104,7 +104,7 @@ def application(global_config, **local_config):
timeout=timeout_response) timeout=timeout_response)
# Signal to stop all processes # Signal to stop all processes
signal(SIGHUP, lambda x, y: stopProcesses()) signal(SIGHUP, stopProcesses)
# Load all filters # Load all filters
openoffice.acquire() openoffice.acquire()
......
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