|
|
On Tue, 25 Nov 2008 22:16:19 -0800, Darren New wrote:
> Jim Henderson wrote:
>> Modified the code inbetween. If the compiled code doesn't change, then
>> the point's moot - you'd be building the same library and there'd be no
>> difference, so who cares if it gets overwritten or not?
>
> I'm not sure that answered the question, tho. I get the same inode for
> both a.outs. Anyway, you care if the code gets overwritten because if
> it's already running (and it has a shared text segment) you can't
> overwrite it, and if it's not already running, you can't start it when
> it's being written.
Your point is that updating a file while it's open and has a shared text
segment would cause a problem. My point is that if you're *updating* the
file, the inode changes *unless* the file is being overwritten by an
unmodified version of that file (and that's probably not likely to happen
often), so if the file doesn't get updated with an identical copy of
itself, big deal. The file is as it should be regardless of whether it
gets overwritten with an identical copy if its previous version or not.
The SUSE updater, though, applies patches, so only files that have
changed would get updated.......so again, not seeing what the problem is
here.
Jim
Post a reply to this message
|
|