Lines Matching refs:pidfile
133 char *buf, *mstr, **pargv, *p, *q, *pidfile; in main() local
182 pidfile = NULL; in main()
194 pidfile = optarg; in main()
301 if (pidfile != NULL) in main()
302 pidfromfile = takepid(pidfile, pidfilelock); in main()
832 takepid(const char *pidfile, int pidfilelock) in takepid() argument
838 fh = fopen(pidfile, "r"); in takepid()
840 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); in takepid()
849 errx(STATUS_ERROR, "File '%s' can be locked", pidfile); in takepid()
853 "Error while locking file '%s'", pidfile); in takepid()
861 errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile); in takepid()
864 err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile); in takepid()
870 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()
872 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()