File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ bool ShmManager::createGlobalSegment(int nsegments)
142142 // TODO: consider using named posix shared memory segments to avoid this
143143 setenv (SHMIDNAME, std::to_string (mShmID ).c_str (), 1 );
144144 setenv (SHMADDRNAME, std::to_string ((unsigned long long )(addr)).c_str (), 1 );
145+ return true ;
145146 }
146147 LOG (INFO) << " SHARED MEM INITIALIZED AT ID " << mShmID ;
147148 if (mShmID == -1 ) {
@@ -150,6 +151,7 @@ bool ShmManager::createGlobalSegment(int nsegments)
150151 setenv (SHMADDRNAME, std::to_string (0 ).c_str (), 1 );
151152 }
152153#endif
154+ return false ;
153155}
154156
155157bool ShmManager::attachToGlobalSegment ()
@@ -168,6 +170,7 @@ bool ShmManager::attachToGlobalSegment()
168170
169171 bool b;
170172 tryAttach (b);
173+ return b;
171174}
172175
173176void ShmManager::occupySegment ()
You can’t perform that action at this time.
0 commit comments