Searched refs:pid_file (Results 1 – 2 of 2) sorted by relevance
300 char pid_file[80]; in start_server() local301 snprintf(pid_file, sizeof(pid_file), "/tmp/pid.%lu", (long)getpid()); in start_server()304 remove(pid_file); in start_server()350 argv[arg++] = pid_file; in start_server()388 while (access(pid_file, F_OK) == -1) { in start_server()392 fp = fopen(pid_file, "r"); in start_server()
5405 static void save_pid(const char *pid_file) { in save_pid() argument5407 if (access(pid_file, F_OK) == 0) { in save_pid()5438 if (rename(tmp_pid_file, pid_file) != 0) { in save_pid()5440 tmp_pid_file, pid_file); in save_pid()5445 if (pid_file == NULL) in remove_pidfile()5448 if (unlink(pid_file) != 0) { in remove_pidfile()5581 char *pid_file = NULL; in main() local5788 pid_file = optarg; in main()6349 if (pid_file != NULL) { in main()6350 save_pid(pid_file); in main()[all …]