Home | History | Annotate | Download | only in dhcpcd

Lines Matching refs:pidfile

144 read_pid(const char *pidfile)
149 if ((fp = fopen(pidfile, "r")) == NULL) {
890 snprintf(options->pidfile, sizeof(options->pidfile), PIDFILE,
939 pid = read_pid(options->pidfile);
948 unlink(options->pidfile);
961 if (read_pid(options->pidfile) == 0) {
982 if ((pid = read_pid(options->pidfile)) > 0 &&
987 pid, options->pidfile);
991 pid_fd = open(options->pidfile,
995 options->pidfile, strerror(errno));
1003 options->pidfile, strerror(errno));
1035 /* If we didn't daemonise then we need to punt the pidfile now */
1038 unlink(options->pidfile);