Searched refs:pidfd (Results 1 – 4 of 4) sorted by relevance
/external/selinux/policycoreutils/restorecond/ |
D | restorecond.c | 91 int pidfd, len; in write_pid_file() local 100 pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644); in write_pid_file() 101 if (pidfd < 0) { in write_pid_file() 106 (void)write(pidfd, val, (unsigned int)len); in write_pid_file() 107 close(pidfd); in write_pid_file()
|
/external/dhcpcd/ |
D | bind.c | 109 writepid(pidfd, pid); in daemonise() 110 close(pidfd); in daemonise() 111 pidfd = -1; in daemonise()
|
D | dhcpcd.h | 145 extern int pidfd;
|
D | dhcpcd.c | 91 int pidfd = -1; variable 203 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()
|