tkks
April 16th, 2013, 09:05 PM
Hi all,
I am trying to write a simple custom shell, and I need to be able to stop processes my shell runs by sending SIGSTOP to them when the user presses CTRL+Z.
But I see in the man pages that the SIGSTOP signal cannot be handled.
So how does the real shell does it? how-come when I press CTRL+Z in BASH, BASH does not stop? how does BASH route SIGSTOP to the process it is running?
Thanks a lot.
I am trying to write a simple custom shell, and I need to be able to stop processes my shell runs by sending SIGSTOP to them when the user presses CTRL+Z.
But I see in the man pages that the SIGSTOP signal cannot be handled.
So how does the real shell does it? how-come when I press CTRL+Z in BASH, BASH does not stop? how does BASH route SIGSTOP to the process it is running?
Thanks a lot.