Got a process struct / need a tty.

Warren R. English Jr. english at uncw.UUCP
Sun Feb 25 15:05:39 AEST 1990


	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 at ecsvax!uncw
(Of course if I had the money I would buy a "real" computer)
*****************************************************************************/



More information about the Comp.unix.wizards mailing list