From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c7be9585a4949490 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-05-05 12:45:44 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!bogus.sura.net!udel!news.intercon.com!psinntp!npri6!murphy From: murphy@npri6.npri.com (David P. Murphy) Newsgroups: comp.sys.dec Subject: Re: Vax/VMX question Message-ID: <7117@npri6.npri.com> Date: 5 May 93 14:45:43 GMT References: <66@ultrix.uhasun.hartford.edu> Distribution: world Organization: NPRI, Alexandria VA TRUNTZ@UHAVAX.HARTFORD.EDU (TRUNTZ, ERIC) writes: >Everyone, > and the location of the user is reasonable simple. My problem arises > in determining which imagename to select for a user. Suppose a user > has logged in and his process name is USER then he spawns a subprocess > called USER_1 he now has two processes on the system. At this stage > all keystrokes that the user makes will end up affecting the process > named USER_1. This is what I mean when I say a termianl is communicating > with a process. Suppose the usaer types ATTACH USER, Now keystrokes > get "sent" to the process call USER. My question is how can I determine > which process a terminal is communicating with. assuming that you really have made it this far, the first test you can make is choose the process which does *not* have a JPI$_STATE equal to SCH$C_HIB or SCH$C_HIBO. in other words, the process which is not attached will be hibernating. of course, the active process may very well be hibernating on its own accord, but that's the best i can do for now. ok dpm -- murphy@npri6.npri.com (systems programmer at large) When every one is dead 602 Cameron St. the Great Game is finished Alexandria, VA 22314 Not before. (703) 683-9090 --- Hurree Babu, "Kim"