Fixed starting the controller with a locked session cache.

This commit is contained in:
Thulinma 2017-11-13 16:08:05 +01:00
parent 96af789da1
commit 421b77dacd

View file

@ -317,6 +317,8 @@ void Controller::SharedMemStats(void * config){
statPointer = &statServer;
shmSessions = new IPC::sharedPage(SHM_SESSIONS, SHM_SESSIONS_SIZE, true);
cacheLock = new IPC::semaphore(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1);
cacheLock->unlink();
cacheLock->open(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1);
std::set<std::string> inactiveStreams;
while(((Util::Config*)config)->is_active){
{