open shm should ignore size

This commit is contained in:
zhangyi 2019-03-28 12:13:37 +08:00
parent 557a849bdf
commit 15a99073e3

View File

@ -53,6 +53,7 @@ id_t acquire(char const * name, std::size_t size, unsigned mode) {
int flag = O_RDWR;
switch (mode) {
case open:
size = 0;
break;
// The check for the existence of the object,
// and its creation if it does not exist, are performed atomically.