Lines Matching refs:pidfile
134 char *buf, *mstr, **pargv, *p, *q, *pidfile; in main() local
183 pidfile = NULL; in main()
195 pidfile = optarg; in main()
302 if (pidfile != NULL) in main()
303 pidfromfile = takepid(pidfile, pidfilelock); in main()
833 takepid(const char *pidfile, int pidfilelock) in takepid() argument
839 fh = fopen(pidfile, "r"); in takepid()
841 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); in takepid()
850 errx(STATUS_ERROR, "File '%s' can be locked", pidfile); in takepid()
854 "Error while locking file '%s'", pidfile); in takepid()
862 errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile); in takepid()
865 err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile); in takepid()
871 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()
873 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile); in takepid()