Re: Forcing a process to have a new controlling terminal

1998-04-03 Thread Jens B. Jorgensen
Yes. Bravo. I graciously defer to this more modern method. Miquel van Smoorenburg wrote: > In article <[EMAIL PROTECTED]>, > Jens B. Jorgensen <[EMAIL PROTECTED]> wrote: > >First open /dev/tty. Then do an TIOCNOTTY ioctl on the file. This will make > >it so your > >process no longer has a contro

Re: Forcing a process to have a new controlling terminal

1998-04-03 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Jens B. Jorgensen <[EMAIL PROTECTED]> wrote: >First open /dev/tty. Then do an TIOCNOTTY ioctl on the file. This will make it >so your >process no longer has a controling terminal. Then simply open a terminal-type >device. Argh, that's the old BSD way of doing thin

Re: Forcing a process to have a new controlling terminal

1998-04-02 Thread Jens B. Jorgensen
First open /dev/tty. Then do an TIOCNOTTY ioctl on the file. This will make it so your process no longer has a controling terminal. Then simply open a terminal-type device. It will become your controlling terminal (unless you specify otherwise, note the flag to open(2): O_NOCTTY