Lines Matching defs:pidfile
62 char pidfile[MAXPATHLEN]; /* we save pid in this file. */
176 n = snprintf(pidfile, sizeof(pidfile), "%s/%s", PATH_PIDFILE, ipsrc);
177 if (n < 0 || (u_int)n >= sizeof(pidfile)) {
178 syslog(LOG_ERR, "path to pidfile too long");
201 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
205 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
221 pidfile, otherpid, strerror(save_errno));
836 if (pidfile[0] && (pidfp != NULL))
837 if (unlink(pidfile) == -1)
838 syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);