The standard way for a process to get to its controlling tty is to use open "/dev/tty".
/ Niels Möller ()
Previous text:
2003-02-15 14:45: Subject: setsid
Oh. You don't need to do both, then? I'm not sure it finds the tty on it's own, isn't that usually done by staring at stdin really hard?
/ Mirar