>>14what sort of bug is it? is flock() hanging when the file isn't locked or is the file somehow locked when it shouldn't be?
flock()