Searched defs:pid_r (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/doveadm/
H A Ddoveadm-master.c17 static bool pid_file_read(const char *path, pid_t *pid_r) argument
42 if (str_to_pid(buf, pid_r) < 0)
45 found = !(*pid_r == getpid() ||
46 (kill(*pid_r, 0) < 0 && errno == ESRCH));
/dovecot/src/master/
H A Dmain.c255 static bool pid_file_read(const char *path, pid_t *pid_r) argument
262 *pid_r = (pid_t)-1;
282 if (str_to_pid(buf, pid_r) < 0) {
286 found = !(*pid_r == getpid() ||
287 (kill(*pid_r, 0) < 0 && errno == ESRCH));

Completed in 13 milliseconds