big mumbo jumo of interleaved patches.

* Use seperate "state" and "config" paths
* Pass the fact that we are in system mode via an env var $PULSE_SYSTEM instead of as var in pa_core
* Properly check proc name when checking PID files. Don't check exename, because we cannot read that for other uids


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2480 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-21 22:50:58 +00:00
parent 6be0c7526c
commit 28405e3dcf
7 changed files with 98 additions and 35 deletions

View file

@ -24,9 +24,9 @@
USA.
***/
int pa_pid_file_create(void);
int pa_pid_file_create(const char *procname);
int pa_pid_file_remove(void);
int pa_pid_file_check_running(pid_t *pid, const char *binary_name);
int pa_pid_file_kill(int sig, pid_t *pid, const char *binary_name);
int pa_pid_file_check_running(pid_t *pid, const char *procname);
int pa_pid_file_kill(int sig, pid_t *pid, const char *procname);
#endif