A
Andrea Di Mario
Thanks Thomas, it is what i'm looking for.
Regards
Regards
Thanks Thomas, it is what i'm looking for.
Regards
The function works for SIGHUP and SIGINT, but it doesn't work for
SIGTERM. I've tried with simple killall and with -15 option.
Have you some ideas?
def receive_signal(signum, stack):
logging.info('Received: %s' % signum)
reactor.stop()
signal.signal(signal.SIGTERM, receive_signal)
signal.signal(signal.SIGHUP, receive_signal)
signal.signal(signal.SIGINT, receive_signal)
The function works for SIGHUP and SIGINT, but it doesn't work for
SIGTERM. I've tried with simple killall and with -15 option.
Have you some ideas?
Am 02.08.2011 09:30 schrieb AndDM:
SIGTERM cannot be caught - it kills the process the hard way.
Am 02.08.2011 09:30 schrieb AndDM:
SIGTERM cannot be caught - it kills the process the hard way.
Thanks Thomas, it is what i'm looking for.
Regards
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.