I am writing a simple shell implementation. I am trying to implement a shell functionality that would allow to handle signals such as the CTRL + Z and stop the ongoing process.