Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2017-05-23 21:36:55 +02:00
commit 6bca77d758
3 changed files with 8 additions and 0 deletions

View file

@ -341,6 +341,10 @@ namespace Mist {
void Input::stream(){
IPC::semaphore pullLock;
pullLock.open(std::string("/MstPull_" + streamName).c_str(), O_CREAT | O_RDWR, ACCESSPERMS, 1);
if (!pullLock){
FAIL_MSG("Could not open pull lock for stream '%s' - aborting!", streamName.c_str());
return;
}
if (!pullLock.tryWait()){
WARN_MSG("A pull process for stream %s is already running", streamName.c_str());
pullLock.close();