sharedmem: more modifications on command line to remove features such as id, remove, add

This commit is contained in:
2018-06-26 12:10:50 +02:00
parent d7831f6c64
commit 0b140111b3
4 changed files with 56 additions and 176 deletions

View File

@ -912,8 +912,7 @@ std::string multiSlsDetector::exec(const char* cmd) {
void multiSlsDetector::setHostname(string s) {
/* to just add at the end of list,
command line should not clear shm upon command hostname */
freeSharedMemory(detId);
size_t p1 = 0;
string temp = string(s);
size_t p2 = temp.find('+', p1);