Searched refs:pidfd (Results 1 – 3 of 3) sorted by relevance
109 writepid(pidfd, pid); in daemonise()110 close(pidfd); in daemonise()111 pidfd = -1; in daemonise()
145 extern int pidfd;
91 int pidfd = -1; variable203 if (pidfd > -1) { in cleanup()208 close(pidfd); in cleanup()2041 pidfd = open(pidfile, O_WRONLY | O_CREAT | O_NONBLOCK, 0664); in main()2042 if (pidfd == -1) in main()2047 if (flock(pidfd, LOCK_EX | LOCK_NB) == -1) { in main()2051 if (set_cloexec(pidfd) == -1) in main()2073 writepid(pidfd, getpid()); in main()