Re: Making terminal available for TIOCSCTTY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.)

-- 
In time of war, the laws are silent. -- Chief Justice of the United
States Supreme Court, William Rehnquist

Attachment: pgp00250.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux