Fix creating of shared memory segments by specifying a writable location to store the associated file.

Authored-by: Joe Marcus Clarke <marcus@FreeBSD.org>
This commit is contained in:
Alexander Shursha 2024-11-29 13:42:00 +03:00
parent 416b26d611
commit 49714f08d3

View file

@ -105,7 +105,11 @@ static inline size_t shm_marker_size(pa_mem_type_t type) {
#ifdef HAVE_SHM_OPEN
static char *segment_name(char *fn, size_t l, unsigned id) {
#ifndef __FreeBSD__
pa_snprintf(fn, l, "/pulse-shm-%u", id);
#else
pa_snprintf(fn, l, "/tmp/pulse-shm-%u", id);
#endif
return fn;
}
#endif