Home
last modified time | relevance | path

Searched refs:pid_fd (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/cmd/oplhpd/
H A Doplhpd.c50 static int pid_fd; variable
96 (void) close(pid_fd); in quit_daemon()
169 if ((pid_fd = open(OPLHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) { in init_daemon()
174 if (lockf(pid_fd, F_TLOCK, 0L) < 0) { in init_daemon()
183 (void) ftruncate(pid_fd, 0); in init_daemon()
185 while ((ret = write(pid_fd, pid_str, i)) != i) { in init_daemon()
/titanic_41/usr/src/cmd/power/
H A Dpowerd.c195 int pid_fd; in main() local
203 if ((pid_fd = open_pidfile(prog)) == -1) in main()
258 if (write_pidfile(pid_fd, pid) == -1) /* logs errors on failure */ in main()
260 (void) close(pid_fd); in main()