Fix CID:71240 / CWE-252
Fix CID:71241 / CWE-252

Removed "set close-on-exec" code from pidfile.c as exec() is not used
Fix CID:71242 / CWE-252