Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching refs:PIDFILE

93 read_pid(const char *pidfile)
98 if ((fp = fopen(pidfile, "r")) == NULL) {
1634 snprintf(ctx.pidfile, sizeof(ctx.pidfile),
1635 PIDFILE, "-", ifn, per);
1637 snprintf(ctx.pidfile, sizeof(ctx.pidfile),
1638 PIDFILE, "", "", "");
1675 strlcpy(ctx.pidfile, argv[optind], sizeof(ctx.pidfile));
1679 if (ctx.pidfile[strlen(ctx.pidfile) - 1] == '6')
1739 pid = read_pid(ctx.pidfile);
1750 unlink(ctx.pidfile);
1765 if (read_pid(ctx.pidfile) == 0)
1774 if ((pid = read_pid(ctx.pidfile)) > 0 &&
1779 pid, ctx.pidfile);
1797 ctx.pid_fd = open(ctx.pidfile, opt, 0664);
1799 logger(&ctx, LOG_ERR, "open `%s': %m", ctx.pidfile);
1805 logger(&ctx, LOG_ERR, "flock `%s': %m", ctx.pidfile);
1989 unlink(ctx.pidfile);