.TH ttsetgrp() "" "" "Internal Kernel Routine"
.PC "Set tty process group"
.B "#include <sys/tty.h>"
.B "#include <sys/types.h>"
\fBvoid ttsetgrp(\fItp\^\fB, \fIctdev\^\fB)\fR
\fBTTY *\fItp\^\fB; dev_t \fIctdev\^\fB;\fR
.PP
.B ttsetgrp()
sets the process group if the current process does not have one.
It also sets up the controlling terminal for the process if there is none.
.SH "See Also"
.B
internal kernel routines
.R
