mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
open shm should ignore size
This commit is contained in:
parent
557a849bdf
commit
15a99073e3
@ -53,6 +53,7 @@ id_t acquire(char const * name, std::size_t size, unsigned mode) {
|
|||||||
int flag = O_RDWR;
|
int flag = O_RDWR;
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case open:
|
case open:
|
||||||
|
size = 0;
|
||||||
break;
|
break;
|
||||||
// The check for the existence of the object,
|
// The check for the existence of the object,
|
||||||
// and its creation if it does not exist, are performed atomically.
|
// and its creation if it does not exist, are performed atomically.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user