Computing.Net > Forums > OpenVMS > VMS Lockmanager

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VMS Lockmanager

Reply to Message Icon

Name: James Holland
Date: August 8, 2001 at 03:20:20 Pacific
Comment:

I have a detached process running on a VAX 4000 using OpenVMS 5.4-2. The process uses system service sys$enqw to lock access to a file while it updates it. It the uses sys$deq to release to lock before it exits. The file is not being unlocked when it exits. I have tried running the same process on three different all running the same version of OpenVMS and it works fine. Has anyone got any ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: George Talbott
Date: August 13, 2001 at 06:49:52 Pacific
Reply:

Try searching for the process that has the file open on that drive by setting your default to the root of that drive and then with sho device/files. That should show you the process that has that particular file open, and you should be able to gain more information as to why the process will not unlock the file.


0

Response Number 2
Name: Charles Sanderson
Date: August 28, 2001 at 13:08:09 Pacific
Reply:

If you're willing to recompile then use the synchronous version of the deq (sys$deqw) instead. You're likely exiting before the request completes which can terminate the request (image run down). You really do want to wait for the lock to release to exit. When the process exits the lock will also clear (unless there is a bug in 5.4-2 allowing the lock to outlive the process).

A lot has to do with the language you're using to queue these locks. I assume it's Macro since you're using the system service calls for file access. If you are doing I/O on the file try letting QIO do the locking for you and then image run down will take care of the lock if you don't get a chance to release it yourself (i.e. the process blows up). If there's no file envolved (using a lock as a semaphore) then I'm way too rusty to help....

Good luck...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to OpenVMS Forum Home


Sponsored links

Ads by Google


Results for: VMS Lockmanager

What is Open VMS you ask www.computing.net/answers/openvms/what-is-open-vms-you-ask/5.html

VMS Queue Printing www.computing.net/answers/openvms/vms-queue-printing/12.html

learning vms www.computing.net/answers/openvms/learning-vms/11.html