Lines Matching refs:pidfile
72 char pidfile[MAXPATHLEN]; /* we save pid in this file. */
205 n = snprintf(pidfile, sizeof(pidfile), "%s/%s",
207 if (n < 0 || (u_int)n >= sizeof(pidfile)) {
208 syslog(LOG_ERR, "path to pidfile too long");
239 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
243 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
259 pidfile, otherpid, strerror(save_errno));
952 if (pidfile[0] && pidfd != -1)
953 if (unlink(pidfile) == -1)
954 syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);