Revert "xpmem: fix mapping of attachment and segment"
This reverts commit a5fcc91656.
Change-Id: If29415369d724391b291939ecce76482138e82f5
This commit is contained in:
@@ -113,7 +113,7 @@ int main(int argc, char **argv)
|
||||
|
||||
addr.apid = apid;
|
||||
addr.offset = 0;
|
||||
attach = xpmem_attach(addr, map_size, NULL);
|
||||
attach = xpmem_attach(addr, pgsize * pgnum, NULL);
|
||||
|
||||
CHKANDJUMP(attach == (void *)-1, EXIT_FAILURE,
|
||||
"xpmem_attach failed: %s\n", strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user