Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari!xanth!mcnc!ecsvax.uncecs.edu!uncw!english From: english@uncw.UUCP (Warren R. English Jr.) Newsgroups: comp.unix.wizards Subject: Got a process struct / need a tty. Keywords: unix tty process Message-ID: <598@uncw.UUCP> Date: 25 Feb 90 04:05:39 GMT Organization: University of North Carolina at Wilmington Lines: 19 How would one go about finding the control terminal of a process? After reading all the process structures from /dev/kmem into any array, I can't seem to figure out how to get the filename of the controlling tty. It seemed to me that after you have access to each and every process on the machine, it would be easy to find the tty. So far, I have tried looking at the user structure and the vnode structure that the process structure points to, but still, no /dev/ttyxx can I find. The machine is a Sequent Balance Series, running Dynix. Thanks. /***************************************************************************** Warren Ray English Jr. University of NC at Wilmington Mathematical Sciences {...,mcnc}!ecsvax!uncw!english english@ecsvax!uncw (Of course if I had the money I would buy a "real" computer) *****************************************************************************/