mozilla / audioipc

Cubeb Audio Remoting For Gecko
10 stars 17 forks source link

audioipc: Try memfd before /dev/shm in open_shm_file. #93

Closed kinetiknz closed 4 years ago

kinetiknz commented 4 years ago

memfd, available in recent Linux kernels, provides a way to create anonymous shared memory mappings referenced by an fd. This avoids needing to preallocate and then unlink files in the filesystem to acquire an fd.

r? @ChunMinChang please