Searched refs:s_pid_fd (Results 1 – 1 of 1) sorted by relevance
61 static int s_pid_fd; variable161 if ((s_pid_fd = open(ACPIHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) { in daemon_init()167 if (lockf(s_pid_fd, F_TLOCK, 0L) < 0) { in daemon_init()177 (void) ftruncate(s_pid_fd, 0); in daemon_init()179 while ((ret = write(s_pid_fd, pid_str, i)) != i) { in daemon_init()225 (void) close(s_pid_fd); in daemon_quit()