Lines Matching defs:pidfile
34 pid_t server_lock(char *program, char *pidfile, int debug)
44 if ((pf = fopen(pidfile, "r"))) {
54 if ((pf = fopen(pidfile, "w")) == NULL) {
56 pidfile);
105 int check_lockfile(const char *program, const char *pidfile)
112 if ((pf = fopen(pidfile, "r"))) {
127 int create_lockfile(const char *program, const char *pidfile)
132 if (check_lockfile(program, pidfile) != 0)
135 /* Write PID to pidfile */
137 if ((pf = fopen(pidfile, "w")) == NULL) {
139 pidfile);