Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
0842a465
Unverified
Commit
0842a465
authored
May 15, 2020
by
Wolfgang Bumiller
Committed by
Stéphane Graber
May 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgfsng: use EPOLLPRI when polling cgroup.events
EPOLLIN will always be true and therefore end up busy-looping Signed-off-by:
Wolfgang Bumiller
<
w.bumiller@proxmox.com
>
parent
64df0b2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cgfsng.c
src/lxc/cgroups/cgfsng.c
+2
-1
No files found.
src/lxc/cgroups/cgfsng.c
View file @
0842a465
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/types.h>
#include <unistd.h>
#include <unistd.h>
...
@@ -1962,7 +1963,7 @@ static int cg_unified_freeze_do(struct cgroup_ops *ops, int timeout,
...
@@ -1962,7 +1963,7 @@ static int cg_unified_freeze_do(struct cgroup_ops *ops, int timeout,
/* automatically cleaned up now */
/* automatically cleaned up now */
descr_ptr
=
&
descr
;
descr_ptr
=
&
descr
;
ret
=
lxc_mainloop_add_handler
(
&
descr
,
fd
,
freezer_cgroup_events_cb
,
INT_TO_PTR
(
state_num
));
ret
=
lxc_mainloop_add_handler
_events
(
&
descr
,
fd
,
EPOLLPRI
,
freezer_cgroup_events_cb
,
INT_TO_PTR
(
state_num
));
if
(
ret
<
0
)
if
(
ret
<
0
)
return
log_error_errno
(
-
1
,
errno
,
"Failed to add cgroup.events fd handler to mainloop"
);
return
log_error_errno
(
-
1
,
errno
,
"Failed to add cgroup.events fd handler to mainloop"
);
}
}
...
...
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