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