diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-11-20 23:48:18 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-11-20 23:48:18 +0000 |
commit | 3c77c6e7d3f597400b3ae10dd1228aabf1ad6280 (patch) | |
tree | ca1c3319c9ffc7004fdd85c47a66db1b0a4ed85c /polyp/polyplib-context.c | |
parent | acc8b7890a0b3878b226f56454eeffc80843fdee (diff) |
* 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
Diffstat (limited to 'polyp/polyplib-context.c')
-rw-r--r-- | polyp/polyplib-context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/polyplib-context.c b/polyp/polyplib-context.c index 70429583..899a8176 100644 --- a/polyp/polyplib-context.c +++ b/polyp/polyplib-context.c @@ -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; } } |