how to implement suspended job handling of a shell using c
in my shell i need to handle suspended job
as if type Ctrl z, the current job is suspended
[type in your command ]$ cat
then cat is suspended
and the command can be "cat | cat"
i what to get some ideas of how to do it
and the other question, if the parent process is suspended, will the child process also be suspended together?