are you using windows or linux?

because on windows.. the 'flock' isn't guaranteed to actually lock the file, if ISAPI (web server geek speak) is running.. since it's in multi-threaded mode.. this has always been a small 'hole' where you could have multiple admins editing things on a site and they 'collide'.. not good.

just wonderin..

from your forum headers, it looks like you are nix and on apache 2.2.13, but i might be looking @ wrong forum laugh

--edit---

the function lock_and_write (ubbthreads) really isn't done properly either..

it's opens the file for write BEFORE locking.. this essentially pre-erases the file before having exclusivity.. so there is a small window of 'zomg, dunno if it will work' and i mean VERY small window..

now in v8, the config.inc.php will be primarily read-only with most of the params moved into the DB, so that goes away..

but i'd suggest making that routine more thread safe for the very RARE cases like you prolly just ran into..

:four cents: wink