Lines Matching defs:path
86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile
93 cleanup_old_pidfile(const char* path)
96 if (strcmp(pidfile_path, path) != 0) {
114 * path to the pidfile; NULL on failure. */
118 char *path;
124 if (asprintf(&path, "%s%s.pid", _PATH_VARRUN, bname) == -1)
126 return path;
136 create_pidfile(const char* path)
143 if (cleanup_old_pidfile(path) == 0)
146 pidfile_path = strdup(path);
150 if ((f = fopen(path, "w")) == NULL) {
165 pidfile(const char *path)
168 if (path == NULL || strchr(path, '/') == NULL) {
171 if ((default_path = generate_varrun_path(path)) == NULL)
182 return create_pidfile(path);