On Fri, 2 Jul 2010 07:19:24 -0500, McKown, John wrote:
>
>No. UNIX does not have that functionality. I've looked for it. The closest is 
>called an "advisory lock". This is the flock() function in UNIX. But all 
>programs which access the file must code the flock() themselves.
>
Even as all z/OS programs desiring serialization must code DISP=OLD
themselves.

The UNIX kernel provides internal serialization sufficient to prevent
directory corruption (as z/OS protects VTOCs).  Neither UNIX nor z/OS
protects against data corruption except by various elective mechanisms.

>http://linux.about.com/library/cmd/blcmdl2_flock.htm
>
Is there a shell interface to flock()?

Is the lock automatically freed when the requesting process terminates,
for whatever cause?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to