From 4724964040c0c054853a2ceb907e57ed3e663dae Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 26 Sep 2017 22:49:09 +0200 Subject: [PATCH] cgroup: IN_SET() FTW! --- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index c68ef5372c3..85f549c4c42 100644 --- 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"); -- 2.39.2