Lines Matching refs:procname
136 static int proc_name_ours(pid_t pid, const char *procname) {
162 expected = pa_sprintf_malloc("%lu (%s)", (unsigned long) pid, procname);
169 expected = pa_sprintf_malloc("%lu (lt-%s)", (unsigned long) pid, procname);
185 int pa_pid_file_create(const char *procname) {
215 if (procname)
216 if ((ours = proc_name_ours(pid, procname)) < 0) {
324 int pa_pid_file_check_running(pid_t *pid, const char *procname) {
325 return pa_pid_file_kill(0, pid, procname);
333 int pa_pid_file_kill(int sig, pid_t *pid, const char *procname) {
359 if (procname) {
362 if ((ours = proc_name_ours(*pid, procname)) < 0)