[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

276.0. "VT and TT" by NY1MM::CANZONERI (Sal Canzoneri) Tue Jul 29 1986 12:12

    I am writing a program that, in effect, keeps track of which users
    are using certain TT: devices.
    
    When I issue $GETDVI with DVI$_PID I always get a pid of 00000042
    regardless of which TT: I inquire about.  Since the call always
    successfully completes I suspect the problem may be linked to the fact 
    that we are running virtual terminals (we are also running VMS 4.3
    if it matters).
    
    Can anyone tell me whether I am right about virtual terminals and,
    if so, how I can get the info I'm looking for.
    
    Thanks in advance.
    
    							-Sal
T.RTitleUserPersonal
Name
DateLines
276.1Check the ManualTUNDRA::HARRIMANTue Jul 29 1986 16:2315
    
    Are you using $GETDVI or $GETDVIW? the difference is in the
    synchronicity of the call. Also are you ALWAYS getting a PID
    of 00000042? like, if you log off, log in again and try again are
    you still getting a PID of 00000042? Are you checking the IOSB (IO
    status block) that is specified in the call? it always returns the
    actual status of the call in it's low-order word. If you use $GETDVI
    on version 4.x systems you have to check the IOSB to see if the
    call completed, otherwise you have to use $GETDVIW.
    
    Virtual terminals are devices just like anything else is a device
    in VMS, so that should not be your problem. However, to me it sounds
    like you may be pointing to the wrong device, or you are always
    getting your own PID, or you are not checking the IOSB for the *real*
    return status...
276.2NY1MM::CANZONERISal CanzoneriWed Jul 30 1986 11:225
    re: -1
    
    Thanks for the hints and advice.  Found the problem.
    
    							-Sal