Home | History | Annotate | Download | only in pkill

Lines Matching defs:pidfile

121   	char buf[_POSIX2_LINE_MAX], **pargv, *q, *pidfile = NULL;
193 pidfile = optarg;
268 if (pidfile != NULL)
269 pidfromfile = takepid(pidfile, pidfilelock);
483 "Usage: %s %s [-F pidfile] [-G gid] [-g pgrp] [-P ppid] [-s sid] "
675 takepid(const char *pidfile, int pidfilelock)
681 fh = fopen(pidfile, "r");
683 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile);
687 * If we can lock pidfile, this means that daemon is not
692 errx(STATUS_ERROR, "File '%s' can be locked", pidfile);
696 "Error while locking file '%s'", pidfile);
704 errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile);
707 err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile);
713 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);
715 errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);