[comp.unix.questions] Help with user/proc structs and kvm_ routines

maddog@eniac.seas.upenn.edu (white lord) (06/05/91)

Hi.

I am trying to write a procedure that will take a pid as the argument and
return the tty associated with that pid.  I am using the kvm_* routines and
I can get the proc structure associated with the pid, but I keep getting
segmentation faults trying to get the tty from the sess structure ( u.u_ttyd
also gives a segmentation fault).  

	Any help/comments/ideas will be greatly appreciated.

	
------------------------------------------------------------------------------
maddog@eniac.seas.upenn.edu
University of Pennsylvania
CSE '92