Help with user/proc structs and kvm_ routines
white lord
maddog at eniac.seas.upenn.edu
Wed Jun 5 07:45:10 AEST 1991
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 at eniac.seas.upenn.edu
University of Pennsylvania
CSE '92
More information about the Comp.unix.questions
mailing list