pidfile_open
struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
if ((pfh = pidfile_open(pid_file, 0600, &pid)) == NULL) {