Fixed LP:1098833; implemented pid lock.
Merge pull request #25 from snwh/devel

Fixed LP:1098833; implemented pid lock.