diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2016-04-15 23:07:36 +0200 |
---|---|---|
committer | Arun Raghavan <git@arunraghavan.net> | 2016-04-27 18:37:08 +0530 |
commit | d2a6afcab31f9f8122200ce383fdd5479ca0ebd1 (patch) | |
tree | 0d99cc24fe698380b388204e5bd740e7ef2662da /src/daemon/main.c | |
parent | b1d47d60fc3f5dcc098f0ccc52a0f29dca8ce29e (diff) | |
download | pulseaudio-d2a6afcab31f9f8122200ce383fdd5479ca0ebd1.tar.gz |
core: Support memfd transport; bump protocol version
Now that all layers in the stack support memfd blocks, add memfd
support for the daemon's global core mempool. Also introduce
"enable-memfd=" daemon argument and configuration option.
For now, memfd support is an opt-in feature to be activated only
when daemon's enable-memfd= is set to yes.
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index c2f47b69a..ae1185d31 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -1017,7 +1017,9 @@ int main(int argc, char *argv[]) { pa_assert_se(mainloop = pa_mainloop_new()); - if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm, conf->shm_size))) { + if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm, + !conf->disable_shm && !conf->disable_memfd && pa_memfd_is_locally_supported(), + conf->shm_size))) { pa_log(_("pa_core_new() failed.")); goto finish; } |