Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!info-vax From: info-vax@ucbvax.ARPA Newsgroups: fa.info-vax Subject: terminal allocation Message-ID: <8917@ucbvax.ARPA> Date: Tue, 9-Jul-85 17:55:21 EDT Article-I.D.: ucbvax.8917 Posted: Tue Jul 9 17:55:21 1985 Date-Received: Thu, 11-Jul-85 07:07:20 EDT Sender: daemon@ucbvax.ARPA Organization: University of California at Berkeley Lines: 21 From: Peter StokesAn observation... (that I may have seen on info-vax before ??) Assume user BOZO is logged into a vax to terminal TTB5: The lexical functions listed below would indicate that the terminal is not allocated and is available... ! fact = f$getdvi("TTB5:","all") ! is device allocated? fact = f$getdvi("TTB5:","avl") ! is device available? It seems that a user can login via a port (e.g. TTB5:) but it will not be considered allocated and considered available unless the user specifically allocates his own termial port. This is until my command proceedure tried to use the port. The fix was.. fact = f$getdvi("TTB5","pid") ! pid of device owner ...and if fact .eqs. "" then use it. ** another one for Ripley **