Both should be f[1]. (Remember that ttys are bidirectional.) f[0] is the controlling end.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-02-15 14:52: Subject: setsid
..."stdin":f[1], "stdout":f[0]...
or something like that. Possibly? I'm not too good with TTYs. :)
/ Mirar