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 controling terminal. Then simply open a > >terminal-type device. > > Argh, that's the old BSD way of doing things... this will work better: > > close(0); > close(1); > close(2); > setsid(); > > ..... open new tty here ... > > Mike. > -- > Miquel van Smoorenburg | Our vision is to speed up time, > [EMAIL PROTECTED] | eventually eliminating it. > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Jens B. Jorgensen [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]