I have a python process which runs in background, and I would like it to generate some output only when the script is terminated.
def handle_exit(): print(\'
To enable signals when debugging PyCharm on Windows:
Ctrl + Shift + A
kill.windows.processes.softly