projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e2465
)
cgroup: IN_SET() FTW!
author
Lennart Poettering
<lennart@poettering.net>
Tue, 26 Sep 2017 20:49:09 +0000
(22:49 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 27 Sep 2017 16:26:18 +0000
(18:26 +0200)
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index
c68ef53
..
85f549c
100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-1884,7
+1884,7
@@
static int on_cgroup_inotify_event(sd_event_source *s, int fd, uint32_t revents,
l = read(fd, &buffer, sizeof(buffer));
if (l < 0) {
- if (
errno == EINTR || errno == EAGAIN
)
+ if (
IN_SET(errno, EINTR, EAGAIN)
)
return 0;
return log_error_errno(errno, "Failed to read control group inotify events: %m");