summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-29 20:07:24 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-30 15:06:43 +0100
commit8add30a03cb19e4a2722fa5a0fc08c277aaf67fd (patch)
tree0783689bd605d0ca5420bea9a4e2eadf98da4774 /src/core/path.c
parenterrno-util: introduce ERRNO_IS_TRANSIENT() (diff)
downloadsystemd-8add30a03cb19e4a2722fa5a0fc08c277aaf67fd.tar.xz
systemd-8add30a03cb19e4a2722fa5a0fc08c277aaf67fd.zip
tree-wide: use ERRNO_IS_TRANSIENT()
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c
index 999cecc96c..29ec66fd4d 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -184,7 +184,7 @@ int path_spec_fd_event(PathSpec *s, uint32_t revents) {
l = read(s->inotify_fd, &buffer, sizeof(buffer));
if (l < 0) {
- if (IN_SET(errno, EAGAIN, EINTR))
+ if (ERRNO_IS_TRANSIENT(errno))
return 0;
return log_error_errno(errno, "Failed to read inotify event: %m");