Lines Matching defs:pidfile
68 int pidfile;
73 if( (pidfile = open(fname, O_WRONLY|O_CREAT, 0644)) < 0)
75 syslog(LOG_ERR, "Unable to open pidfile for writing %s: %m", fname);
83 "Unable to write to pidfile %s: snprintf(): FAILED", fname);
84 close(pidfile);
89 if(write(pidfile, pidstring, pidstringlen) < 0)
90 syslog(LOG_ERR, "Unable to write to pidfile %s: %m", fname);
93 close(pidfile);
102 int pidfile;
108 if( (pidfile = open(fname, O_RDONLY)) < 0)
113 if(read(pidfile, buffer, 63))
119 close(pidfile);
125 close(pidfile);