mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
solved recover from root permission error
This commit is contained in:
@ -827,7 +827,8 @@ int UDPStandardImplementation::startReceiver(char *c){
|
|||||||
//stop udp socket
|
//stop udp socket
|
||||||
shutDownUDPSockets();
|
shutDownUDPSockets();
|
||||||
sprintf(c,"Could not create file %s.",completeFileName);
|
sprintf(c,"Could not create file %s.",completeFileName);
|
||||||
FILE_LOG(logERROR) << c;
|
//FILE_LOG(logERROR) << c;
|
||||||
|
for(int i=0; i < numberofWriterThreads; i++) sem_post(&writerSemaphore[i]);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1308,8 +1309,10 @@ int UDPStandardImplementation::setupWriter(){
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE_LOG(logDEBUG) << "Successfully created file(s)";
|
if(fileCreateSuccess == OK){
|
||||||
cout << "Writer Ready ..." << endl;
|
FILE_LOG(logDEBUG) << "Successfully created file(s)";
|
||||||
|
cout << "Writer Ready ..." << endl;
|
||||||
|
}
|
||||||
|
|
||||||
return fileCreateSuccess;
|
return fileCreateSuccess;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user