info-vax@ucbvax.ARPA (07/10/85)
From: Peter Stokes <stokes%cmc.cdn%ubc.csnet@csnet-relay.arpa> An 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 **