in reply to [Solved]Easiest way to protect process from duplication.
See here:
RFC: A new module to help avoid running multiple instances of the same script (via cron, for example)