shmpipe: Create shm area exclusively

This commit is contained in:
Olivier Crête 2010-01-29 10:57:27 +02:00
parent 807da2165a
commit 7c2a445a72

View file

@ -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;