I would like to register a custom signal handler that does some things and then continues with the normal signal handling, specifically for the SIGTERM signal.
Python does not have a SIGTERM handler registered (Python: What is the default handling of SIGTERM?), so how can I continue with the OS's normal SIGTERM processing after I do my own custom handling?
def my_handler(self, signum, frame):
do_something()
# What do I do here to raise to the OS?
signal.signal(signal.SIGTERM, my_handler)