Commit e8463bd6 authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch...

Merge remote-tracking branch 'origin/fix-running-modem-in-generic-fedora-container' into integration_2022_wk13b
parents 5a3eeac5 87c50079
...@@ -234,8 +234,9 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name, ...@@ -234,8 +234,9 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name,
ret=pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); ret=pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
AssertFatal(ret==0,"ret: %d, errno: %d\n",ret, errno); AssertFatal(ret==0,"ret: %d, errno: %d\n",ret, errno);
if (system("grep -iq 'ID_LIKE.*fedora' /etc/os-release && uname -a | grep -c rt")==0) if (checkIfFedoraDistribution())
if (system("cat /proc/self/cgroup | egrep -c 'libpod|podman|kubepods'")==0) if (checkIfGenericKernelOnFedora())
if (checkIfInsideContainer())
settingPriority = 0; settingPriority = 0;
if (settingPriority) { if (settingPriority) {
......
...@@ -396,7 +396,14 @@ void *rrc_enb_process_msg(void *notUsed) { ...@@ -396,7 +396,14 @@ void *rrc_enb_process_msg(void *notUsed) {
int main( int argc, char **argv ) { int main( int argc, char **argv ) {
int set_exe_prio = 1;
if (checkIfFedoraDistribution())
if (checkIfGenericKernelOnFedora())
if (checkIfInsideContainer())
set_exe_prio = 0;
if (set_exe_prio)
set_priority(79); set_priority(79);
if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1)
{ {
fprintf(stderr, "mlockall: %s\n", strerror(errno)); fprintf(stderr, "mlockall: %s\n", strerror(errno));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment