Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
f9a1ae32
Commit
f9a1ae32
authored
May 17, 2024
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert missing CAP_SYS_NICE workaround in system.c
parent
556fcbf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
common/utils/system.c
common/utils/system.c
+2
-13
No files found.
common/utils/system.c
View file @
f9a1ae32
...
...
@@ -263,19 +263,8 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name,
LOG_I
(
UTIL
,
"threadCreate for %s, affinity %x, priority %d
\n
"
,
name
,
affinity
,
priority
);
ret
=
pthread_create
(
t
,
&
attr
,
func
,
param
);
if
(
ret
!=
0
)
{
LOG_W
(
UTIL
,
"Error in pthread_create(): ret: %d, errno: %d, %s, attempting fallback to default scheduling policy. "
"This is most likely caused by running without CAP_SYS_NICE capability. Run as root to prevent this.
\n
"
,
ret
,
errno
,
strerror
(
ret
));
ret
=
pthread_attr_init
(
&
attr
);
AssertFatal
(
ret
==
0
,
"Error in pthread_attr_init(): ret: %d, errno: %d
\n
"
,
ret
,
errno
);
ret
=
pthread_create
(
t
,
&
attr
,
func
,
param
);
AssertFatal
(
ret
==
0
,
"Error in pthread_create(): ret: %d, errno: %d, %s
\n
"
,
ret
,
errno
,
strerror
(
ret
));
}
AssertFatal
(
ret
==
0
,
"Error in pthread_create(): ret: %d, errno: %d
\n
"
,
ret
,
errno
);
pthread_setname_np
(
*
t
,
name
);
if
(
affinity
!=
-
1
)
{
cpu_set_t
cpuset
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment