diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-26 22:49:09 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-09-26 22:49:09 +0200 |
commit | 0ceb7e71414b0b45eed4076cb54e4b11fa466120 (patch) | |
tree | 4799c95f39275834db741d6aa681e1d32c2f7b08 /src/core | |
parent | 2e703556b82bfe0106ec5efa695c4610572ba79d (diff) |
cgroup: IN_SET() FTW!
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index d8470004d..c0f07ca9a 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1885,7 +1885,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"); |