mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
shmpipe: Create shm area exclusively
This commit is contained in:
parent
807da2165a
commit
7c2a445a72
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ sp_open_shm (char *path, int id, int writer, mode_t perms, size_t size)
|
|||
|
||||
|
||||
if (writer)
|
||||
flags = O_RDWR | O_CREAT | O_TRUNC;
|
||||
flags = O_RDWR | O_CREAT | O_TRUNC | O_EXCL;
|
||||
else
|
||||
flags = O_RDONLY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue