Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!dscatl!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.unix.aix Subject: losing /dev/tty ANSWERED Message-ID: <1163@msa3b.UUCP> Date: 20 Oct 89 21:03:41 GMT Organization: Management Science America, Inc., Atlanta, GA Lines: 20 In an earlier article I asked about "setpgrp()". It seems that after a setpgrp, /dev/tty no longer exists (i.e. an open of /dev/tty fails with an errno of 6 under AIX PS/2 1.1.) According to the Tech Ref Vol 1: The setpgrp system call ... This is equivalent to setpgid(0,0). Well I say it is NOT. After a "setpgrp()", /dev/tty is gone. After "setpgid(0,0)" or "setpgid(getpid(),getpid())" /dev/tty is still there. I read in another newsgroup that SYSV (which has setpgrp) loses /dev/tty too. I suppose that the behavior is correct, but I sure wish they would document this difference. I may try to get a doc APAR with IBM, if I have a little time to kill. Many thanks to Ryan Waldron @ Intergraph (who is running CLIX and not AIX) for invaluable assistance. -- Kevin Kleinfelter @ Management Science America, Inc (404) 239-2347 gatech!nanovx!msa3b!kevin