[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making terminal available for TIOCSCTTY
On Wed, Jan 08, 2003 at 01:50:45PM -0800, Seth Arnold wrote:
> On Tue, Jan 07, 2003 at 01:26:24PM +0100, Jan Hudec wrote:
> > Is it somehow possible to obtain a pty (not interested in usused virtual
> > console - only in different kinds of teminal emulators) so that
> > a process that has it's stdin, stdout and stderr redirected there can
> > claim it it's controling tty?
>
> Between the ioctl TIOCNOTTY and opening new terminal devices without
> using O_NOCTTY should re-associate your process with a new terminal.
> (Check open(2) for more hints.)
I know how to make a pty my controling terminal. I however don't know
how to make a pty suitable for using as controling tty for a process,
whose parent has completely different controling tty.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/