Article View: comp.lang.rexx
Article #4752Re: Locking a file?
From: Pierre Jelenc
Date: Thu, 18 Apr 1996 20:49
Date: Thu, 18 Apr 1996 20:49
20 lines
1343 bytes
1343 bytes
Pierre Jelenc <rcpj@panix.com> writes:
>
> Does that lock the EA's as well? I cannot find any documentation as to how
> SysPutEA() decides whether it has access to the file or not.
And to follow up on myself, from the tests I've been able to perform it
seems that locking a file by opening it for write or read/write prevents
writing to the extended attributes.
How can one update data and extended attributes in such a way that the
file is protected from simultaneous write attempts by several processes?
If the file must be closed first, it can be grabbed by a competitor that
can clobber the EA's or prevent their update.
Pierre
--
Pierre Jelenc Know what's weird? Day by day nothing seems to
rcpj@panix.com change, but pretty soon everything is different.
pierre@nycbeer.org Calvin & Hobbes
http://www.columbia.edu/~pcj1/
Technical Details
Message-ID:
<4l69ta$j4b@panix2.panix.com>Path:
arc1-ca.pugleaf.net!newsfeed.internetmci.com!panix!not-for-mailReferences:
<4l12kf$4m0@panix2.panix.com> <4l250v$l61@news.knoware.nl> <4l2v4n$gdr@panix2.panix.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeed.internetmci.com!panix!not-for-mail From: rcpj@panix.com (Pierre Jelenc) Newsgroups: comp.lang.rexx Subject: Re: Locking a file? Date: 18 Apr 1996 16:49:46 -0400 Organization: panix Distribution: inet Message-ID: <4l69ta$j4b@panix2.panix.com> References: <4l12kf$4m0@panix2.panix.com> <4l250v$l61@news.knoware.nl> <4l2v4n$gdr@panix2.panix.com> NNTP-Posting-Host: panix2.panix.com