Lines Matching defs:pidfile
71 char pidfile[MAXPATHLEN]; /* we save pid in this file. */
204 n = snprintf(pidfile, sizeof(pidfile), "%s/%s",
206 if (n < 0 || (u_int)n >= sizeof(pidfile)) {
207 syslog(LOG_ERR, "path to pidfile too long");
238 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
242 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
258 pidfile, otherpid, strerror(save_errno));
951 if (pidfile[0] && pidfd != -1)
952 if (unlink(pidfile) == -1)
953 syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);