> the easy way to get a controlling terminal is to close any ttys
> (particularly the current controlling terminal), become a session
> leader (setsid()) and then open a tty (without the O_NOCTTY flag).
> it will be the new controlling tty.
> 
> and my apologies if i've misunderstood the point of the mail to which
> i'm responding :)

You did, but that's ok. Miscommunications make for the best dinner table
conversations. :-)

I pointed out yesterday(?) that according to the UNIX98 specs, opening a
tty is not guaranteed to be sufficient. This, combined with a comment from
the server_pty.c code, sent me on a quest to see if POSIX specified an
alternative means for setting the controlling tty.

-John


Reply via email to