Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!lll-winken!iggy.GW.Vitalink.COM!widener!netnews.upenn.edu!eniac.seas.upenn.edu!maddog From: maddog@eniac.seas.upenn.edu (white lord) Newsgroups: comp.unix.questions Subject: Help with user/proc structs and kvm_ routines Message-ID: <44152@netnews.upenn.edu> Date: 4 Jun 91 21:45:10 GMT Article-I.D.: netnews.44152 Sender: news@netnews.upenn.edu Reply-To: maddog@eniac.seas.upenn.edu (Eric McGlinchey) Distribution: usa Organization: University of Pennsylvania Lines: 15 Nntp-Posting-Host: eniac.seas.upenn.edu 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