Read the readline function (check for the global variables, related to signals
subject : Avoid using more than one global variable to indicate a received signal. Consider
the implications: this approach ensures that your signal handler will not access your
main data structures.