We know shell
forks(),assigns it to a different process group and make it the foreground process group such that
cntrl-z will go to the child process group and the parent waits on it.
However after the child finishes how does the parent get back the terminal?
I making shell.Consider parent above to be myshell and the child above to be the command that I will give.child(command) will executed wusing exec() family functions.I have noticed that the that my parent(shell) doesnt get the terminal back(i have checked using