Searched refs:pid_fd (Results 1 – 1 of 1) sorted by relevance
1234 int pid_fd = -1; in main() local1400 …if (-1 == (pid_fd = open(srv->srvconf.pid_file->ptr, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC, S_IRUS… in main()1419 …if (-1 == (pid_fd = open(srv->srvconf.pid_file->ptr, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWU… in main()1704 if (pid_fd != -1) { in main()1707 write(pid_fd, srv->tmp_buf->ptr, srv->tmp_buf->used - 1); in main()1708 close(pid_fd); in main()1709 pid_fd = -1; in main()