src/os/linux/vm/os_linux.cpp

changeset 1892
79bf863697eb
parent 1855
3fca8e9cd36a
child 1907
c18cbe5936b8
equal deleted inserted replaced
1870:ef1a1d051971 1892:79bf863697eb
2786 } 2786 }
2787 return NULL; 2787 return NULL;
2788 } 2788 }
2789 2789
2790 // attach to the region 2790 // attach to the region
2791 addr = (char*)shmat(shmid, NULL, 0); 2791 addr = (char*)shmat(shmid, req_addr, 0);
2792 int err = errno; 2792 int err = errno;
2793 2793
2794 // Remove shmid. If shmat() is successful, the actual shared memory segment 2794 // Remove shmid. If shmat() is successful, the actual shared memory segment
2795 // will be deleted when it's detached by shmdt() or when the process 2795 // will be deleted when it's detached by shmdt() or when the process
2796 // terminates. If shmat() is not successful this will remove the shared 2796 // terminates. If shmat() is not successful this will remove the shared

mercurial