summaryrefslogtreecommitdiff
path: root/src/import
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/import
parent7aad83580fccee926d903bdb1a2a6af2c40ef0fc (diff)
downloadsystemd-8add30a03cb19e4a2722fa5a0fc08c277aaf67fd.tar.gz
tree-wide: use ERRNO_IS_TRANSIENT()
Diffstat (limited to 'src/import')
-rw-r--r--src/import/importd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/import/importd.c b/src/import/importd.c
index 66771f63e2..125b2dc808 100644
--- a/src/import/importd.c
+++ b/src/import/importd.c
@@ -567,10 +567,11 @@ static int manager_on_notify(sd_event_source *s, int fd, uint32_t revents, void
int r;
n = recvmsg_safe(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC);
- if (IN_SET(n, -EAGAIN, -EINTR))
- return 0;
- if (n < 0)
+ if (n < 0) {
+ if (ERRNO_IS_TRANSIENT(n))
+ return 0;
return (int) n;
+ }
cmsg_close_all(&msghdr);