Home
last modified time | relevance | path

Searched refs:pidfile_path (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/bsd/blocklist/port/
H A Dpidfile.c56 static char *pidfile_path; variable
63 if ((pidfile_path != NULL) && (pidfile_pid == getpid())) in pidfile_cleanup()
64 (void) unlink(pidfile_path); in pidfile_cleanup()
95 if (pidfile_path != NULL) { in cleanup_old_pidfile()
96 if (strcmp(pidfile_path, path) != 0) { in cleanup_old_pidfile()
99 free(pidfile_path); in cleanup_old_pidfile()
100 pidfile_path = NULL; in cleanup_old_pidfile()
146 pidfile_path = strdup(path); in create_pidfile()
147 if (pidfile_path == NULL) in create_pidfile()
151 free(pidfile_path); in create_pidfile()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dwrite_pid.c85 static char *pidfile_path; variable
91 if (pidfile_path != NULL && pidfile_pid == getpid()) in pidfile_cleanup()
92 pid_file_delete(&pidfile_path); in pidfile_cleanup()
107 if (pidfile_path != NULL) in rk_pidfile()
111 pidfile_path = pid_file_write(bname); in rk_pidfile()
114 if (pidfile_path != NULL) in rk_pidfile()
117 if (pidfile_path != NULL) in rk_pidfile()
/netbsd-src/lib/libutil/
H A Dpidfile.c51 static char pidfile_path[PATH_MAX]; variable
65 pidfile_path[0] = '\0'; in pidfile_close()
90 (void) unlink(pidfile_path); in pidfile_clean()
142 if (path == NULL && pidfile_path[0] != '\0') in pidfile_read()
143 path = pidfile_path; in pidfile_read()
195 if (pidfile_fd != -1 && strcmp(pidfile_path, path) != 0) in pidfile_lock()
216 strlcpy(pidfile_path, path, sizeof(pidfile_path)); in pidfile_lock()
/netbsd-src/libexec/httpd/
H A Ddaemon-bozo.c69 static const char* pidfile_path = NULL; variable
93 if (pidfile_path != NULL && pidfile_pid == getpid()) { in remove_pidfile()
94 (void)unlink(pidfile_path); in remove_pidfile()
95 pidfile_path = NULL; in remove_pidfile()
104 assert(pidfile_path == NULL); in create_pidfile()
118 pidfile_path = httpd->pidfile; in create_pidfile()
122 pidfile_path, pidfile_pid)); in create_pidfile()