summaryrefslogtreecommitdiffstats
path: root/src/async.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 06:10:25 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 06:11:31 +0200
commit6ed0948d5df69ff81404a702cfbebe3217fa2f90 (patch)
tree6ddaf5523639c2f6f81f479b12745a2f9926a52e /src/async.c
parent73f7d5048c0e2ad4817ad208de02adee73938ed0 (diff)
downloadfastd-6ed0948d5df69ff81404a702cfbebe3217fa2f90.tar
fastd-6ed0948d5df69ff81404a702cfbebe3217fa2f90.zip
Remove EINTR handling where signals are blocked anyways
Diffstat (limited to 'src/async.c')
-rw-r--r--src/async.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/async.c b/src/async.c
index a443cfe..c1c4802 100644
--- a/src/async.c
+++ b/src/async.c
@@ -102,20 +102,16 @@ void fastd_async_handle(void) {
.msg_iovlen = 1,
};
- while (recvmsg(ctx.async_rfd, &msg, MSG_PEEK) < 0) {
- if (errno != EINTR)
- exit_errno("fastd_async_handle: recvmsg");
- }
+ if (recvmsg(ctx.async_rfd, &msg, MSG_PEEK) < 0)
+ exit_errno("fastd_async_handle: recvmsg");
uint8_t buf[header.len] __attribute__((aligned(8)));
vec[1].iov_base = buf;
vec[1].iov_len = sizeof(buf);
msg.msg_iovlen = 2;
- while (recvmsg(ctx.async_rfd, &msg, 0) < 0) {
- if (errno != EINTR)
- exit_errno("fastd_async_handle: recvmsg");
- }
+ if (recvmsg(ctx.async_rfd, &msg, 0) < 0)
+ exit_errno("fastd_async_handle: recvmsg");
switch (header.type) {
case ASYNC_TYPE_RESOLVE_RETURN: