Re:Things UNIX can do atomically
by JeffJenkins on Thursday January 07, 2010 @08:51AM
(#1037022)
That's definitely worth keeping in mind! Does that apply to sibling processes as well (like two apache child processes)?
It's even worse than that. A lock is released as soon as any of its owning processes closes any descriptor to that file. As a result, if a child forks and exits, the parent no longer holds any locks...