* fix autospawn lock file creation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@315 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-11-27 14:00:59 +00:00
parent 9a9309f593
commit 7f3c92bad9

View file

@ -592,6 +592,7 @@ int pa_context_connect(struct pa_context *c, const char *server, int spawn, cons
char lf[PATH_MAX]; char lf[PATH_MAX];
pa_runtime_path(AUTOSPAWN_LOCK, lf, sizeof(lf)); pa_runtime_path(AUTOSPAWN_LOCK, lf, sizeof(lf));
pa_make_secure_parent_dir(lf);
assert(c->autospawn_lock_fd <= 0); assert(c->autospawn_lock_fd <= 0);
c->autospawn_lock_fd = pa_lock_lockfile(lf); c->autospawn_lock_fd = pa_lock_lockfile(lf);