Fix #438
Merge pull request #447 from soyuka/log-pid-env

Fix #438