summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-30 04:07:24 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-30 23:06:43 +0900
commit8add30a03cb19e4a2722fa5a0fc08c277aaf67fd (patch)
tree0783689bd605d0ca5420bea9a4e2eadf98da4774 /src/core/cgroup.c
parent7aad83580fccee926d903bdb1a2a6af2c40ef0fc (diff)
downloadsystemd-8add30a03cb19e4a2722fa5a0fc08c277aaf67fd.tar.gz
tree-wide: use ERRNO_IS_TRANSIENT()
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index c942db8d05..396de12c4f 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -3191,7 +3191,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 (IN_SET(errno, EINTR, EAGAIN))
+ if (ERRNO_IS_TRANSIENT(errno))
return 0;
return log_error_errno(errno, "Failed to read control group inotify events: %m");