Python send signal to thread. This process is supposed to run forever to monitor stuff.

Python send signal to thread. From here:Signals and threads.