tcgetpgrp (3) Linux Manual Page
tcgetpgrp, tcsetpgrp – get and set terminal foreground process group Synopsis #include <unistd.h> pid_t tcgetpgrp(int fd); int tcsetpgrp(int fd, pid_t pgrp); Description The function tcgetpgrp() returns the process group ID of the foreground process group on the terminal associated to fd, which must be the controlling terminal of the calling process. The function tcsetpgrp() makes…
