e8bc011b3b
- fix creation of pid file - don't use non-reentrant functions in signal handlers
- fix creation of pid file - don't use non-reentrant functions in signal handlers