Fixed starting the controller with a locked session cache.
This commit is contained in:
		
							parent
							
								
									96af789da1
								
							
						
					
					
						commit
						421b77dacd
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -317,6 +317,8 @@ void Controller::SharedMemStats(void * config){
 | 
				
			||||||
  statPointer = &statServer;
 | 
					  statPointer = &statServer;
 | 
				
			||||||
  shmSessions = new IPC::sharedPage(SHM_SESSIONS, SHM_SESSIONS_SIZE, true);
 | 
					  shmSessions = new IPC::sharedPage(SHM_SESSIONS, SHM_SESSIONS_SIZE, true);
 | 
				
			||||||
  cacheLock = new IPC::semaphore(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1);
 | 
					  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;
 | 
					  std::set<std::string> inactiveStreams;
 | 
				
			||||||
  while(((Util::Config*)config)->is_active){
 | 
					  while(((Util::Config*)config)->is_active){
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue