[FIX] Specify the signals for the posix environment
bzr revid: stephane@tinyerp.com-20090103013718-q75ueclijh2eqxu1
This commit is contained in:
parent
3bb427edd1
commit
b980050fd5
|
@ -171,8 +171,13 @@ if tools.config['netrpc']:
|
|||
logger.notifyChannel("web-services", netsvc.LOG_INFO,
|
||||
"starting NET-RPC service, port %d" % (netport,))
|
||||
|
||||
LST_SIGNALS = ['SIGINT', 'SIGTERM']
|
||||
if os.name == 'posix':
|
||||
LST_SIGNALS.extend(['SIGUSR1','SIGQUIT'])
|
||||
|
||||
|
||||
SIGNALS = dict(
|
||||
[(getattr(signal, sign), sign) for sign in ('SIGINT', 'SIGTERM', 'SIGUSR1', 'SIGQUIT')]
|
||||
[(getattr(signal, sign), sign) for sign in LST_SIGNALS]
|
||||
)
|
||||
|
||||
def handler(signum, _):
|
||||
|
|
Loading…
Reference in New Issue