Use a full blown lock file instead of a random file serially accessed and containing unreliable pid information. Of course, pids can be reused across fork()s, even if this is unlikely (but not impossible).
Use a full blown lock file instead of a random file serially accessed and containing unreliable pid information. Of course, pids can be reused across fork()s, even if this is unlikely (but not impossible).