Lines Matching defs:pidfile
34 pid_t server_lock(char *program, char *pidfile, int debug)
43 if ((pf = fopen(pidfile, "r"))) {
53 if ((pf = fopen(pidfile, "w")) == NULL) {
55 pidfile);
103 int check_lockfile(const char *program, const char *pidfile)
110 if ((pf = fopen(pidfile, "r"))) {
125 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);