mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
* remove autospawn lock file usage
* fix some compiler warnings * implement PID file support git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@296 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
acc8b7890a
commit
3c77c6e7d3
11 changed files with 342 additions and 31 deletions
|
|
@ -67,7 +67,10 @@ static void unlock_autospawn_lock_file(struct pa_context *c) {
|
|||
assert(c);
|
||||
|
||||
if (c->autospawn_lock_fd >= 0) {
|
||||
pa_unlock_lockfile(c->autospawn_lock_fd);
|
||||
char lf[PATH_MAX];
|
||||
pa_runtime_path(AUTOSPAWN_LOCK, lf, sizeof(lf));
|
||||
|
||||
pa_unlock_lockfile(lf, c->autospawn_lock_fd);
|
||||
c->autospawn_lock_fd = -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue