On 02/24/2010 03:06 AM, Adrian Chadd wrote: > On 24 February 2010 06:55, Amos Jeffries <[email protected]> wrote: > >>> Ah, I did not realize cache.log daemon logging is not supported yet. One >>> more reason to start with simple O_APPEND. As a side effect, we would be >>> able to debug daemon log starting problems as well :-). >>> >> Yay. Definitely +3 then. :) > > Uhm, is O_APPEND defined as an atomic write? I didn't think so. It may > be under Linux and it may be under certain FreeBSD versions, but it's > likely a side-effect of VFS locking than the actual specification.
The write with O_APPEND is defined as atomic on some Linux open(2) man pages. I am sure it is not atomic in some environments. Folks running Squids in those environments will not use SMP or use SMP without reliable logging until they get a centralized logging daemon support. Alex.
