This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is archiving synchronized ?


On Monday 30 January 2006 00:51, Prasad Venkata Boddupalli wrote:
> On Mon, 30 Jan 2006, Daniel Jacobowitz wrote:
> >> If 2 or more processes insert files into the same archive, are the
> >> accesses serialized ? If not, the integrity of the archive file is
> >> suspect. Isn't it so ?
> >
> > It's your responsibility to lock the archive, in that case.
>
> Thank you. I was just wondering if 'ar' acquires write-lock on the
> archive file before pushing the file in.

iirc, ar just creates a temp file in the same dir as the ar you're working on, 
utilizes that for updates, and then renames it to the original file
-mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]