Lines Matching refs:pidfile
133 char buf[_POSIX2_LINE_MAX], *mstr, **pargv, *p, *q, *pidfile; in main() local
180 pidfile = NULL; in main()
192 pidfile = optarg; in main()
299 if (pidfile != NULL) in main()
300 pidfromfile = takepid(pidfile, pidfilelock); in main()
800 takepid(const char *pidfile, int pidfilelock) in takepid() argument
806 fh = fopen(pidfile, "r"); in takepid()
808 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); in takepid()
817 errx(STATUS_ERROR, "File '%s' can be locked", pidfile); in takepid()
821 "Error while locking file '%s'", pidfile); in takepid()
829 errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile); in takepid()
832 err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile); in takepid()
838 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()
840 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()