Lines Matching refs:avahi_pid
44 static pid_t avahi_pid = 0; variable
47 if (avahi_pid != 0) { in kill_avahi_pid()
48 rfbLog("kill_avahi_pid: %d\n", (int) avahi_pid); in kill_avahi_pid()
49 kill(avahi_pid, SIGTERM); in kill_avahi_pid()
50 avahi_pid = 0; in kill_avahi_pid()
102 avahi_pid = fork(); in try_avahi_helper()
104 if (avahi_pid < 0) { in try_avahi_helper()
106 avahi_pid = 0; in try_avahi_helper()
111 if (avahi_pid != 0) { in try_avahi_helper()
115 waitpid(avahi_pid, &status, WNOHANG); in try_avahi_helper()
116 if (kill(avahi_pid, 0) != 0) { in try_avahi_helper()
117 waitpid(avahi_pid, &status, WNOHANG); in try_avahi_helper()
118 avahi_pid = 0; in try_avahi_helper()
123 rfbLog("%s helper pid is: %d\n", cmd, (int) avahi_pid); in try_avahi_helper()