I\'m trying to give a child process (via fork()) foreground access to the terminal.
fork()
After I fork(), I run the following code in the child p
Figured it out. I have to ignore any SIGTTOU signals.
I did that by adding:
signal(SIGTTOU, SIG_IGN);
Before the tcsetpgrp() call.
tcsetpgrp()