Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2016-07-20 14:57:30 +02:00
commit 9ff8be341c

View file

@ -106,6 +106,10 @@ namespace Controller {
if (!changed){return;}//cancel further processing if no changes
static IPC::sharedPage mistConfOut(SHM_CONF, DEFAULT_CONF_PAGE_SIZE, true);
if (!mistConfOut.mapped){
FAIL_MSG("Could not open config shared memory storage for writing! Is shared memory enabled on your system?");
return;
}
IPC::semaphore configLock(SEM_CONF, O_CREAT | O_RDWR, ACCESSPERMS, 1);
//lock semaphore
configLock.wait();