How to use and customize operating system signals like SIGINT and SIGBREAK to control the flow of your python script during execution.
How to use the SIGINT ,SIGBREAK to exit from an infinite loop in Python while closing our resources like file objects, Serial connections etc in an orderly manner.