With file locks that aren't broken by design!
<a href="https://lwn.net/Articles/586904/" rel="nofollow">https://lwn.net/Articles/586904/</a>
Linux 3.15 will also include a better renameat2 function with parameters that allow to write better pid file placing and handling without race conditions.<p><a href="http://man7.org/linux/man-pages/man2/renameat2.2.html" rel="nofollow">http://man7.org/linux/man-pages/man2/renameat2.2.html</a>
Here's the LKML listing, because that little asp classic site seems to be having some slowness, and they didn't really include much more than a small summary, which is about as big as the whole lkml article anyway.<p><a href="https://lkml.org/lkml/2014/6/8/70" rel="nofollow">https://lkml.org/lkml/2014/6/8/70</a>