Searched refs:fd_pidfile (Results 1 – 1 of 1) sorted by relevance
240 int fd_pidfile, ret; in server_loop() local242 fd_pidfile = open(pidfile_path, O_CREAT | O_RDWR, 0664); in server_loop()243 if (fd_pidfile < 0) { in server_loop()258 while (fcntl(fd_pidfile, F_SETLKW, &fl) < 0) { in server_loop()330 if (ftruncate(fd_pidfile, 0)) {} /* Silence warn_unused_result */ in server_loop()331 write_all(fd_pidfile, reply_buf, strlen(reply_buf)); in server_loop()332 if (fd_pidfile > 1) in server_loop()333 close(fd_pidfile); /* Unlock the pid file */ in server_loop()