Lines Matching refs:pidfile_path
41 static char *pidfile_path;
58 free(pidfile_path);
59 pidfile_path = NULL;
62 if (asprintf(&pidfile_path, "%s%s.pid", _PATH_VARRUN, basename) == -1)
65 if ((f = fopen(pidfile_path, "w")) == NULL) {
67 free(pidfile_path);
68 pidfile_path = NULL;
77 (void) unlink(pidfile_path);
78 free(pidfile_path);
79 pidfile_path = NULL;
88 (void) unlink(pidfile_path);
89 free(pidfile_path);
90 pidfile_path = NULL;
103 if (pidfile_path != NULL && pidfile_pid == getpid())
104 (void) unlink(pidfile_path);