I skimmed through the O'Reilly books on POSIX, and was unable to find any
references to setting the controlling terminal. My best guess is that the
following comment may be a reference to tcsetpgrp, which can be used to
specify the process group in the current session which should be in the
"foreground".

    /* FIXME: According to [EMAIL PROTECTED], there's a cleaner POSIX way
     * to make a tty the process's controlling tty. */


A note on the streams modules: perhaps ttcompat should be pushed onto the
slave pty as well. Quoting from APUE: 

"ttcompat provides compatibility for older V7, 4BSD, and Xenix ioctl
calls. It's an optional module but since it's automatically pushed for
console logins and network logins, we push it onto the slave's stream."

-John

Reply via email to