diff options
Diffstat (limited to 'usr.sbin/rad/engine.c')
-rw-r--r-- | usr.sbin/rad/engine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rad/engine.c b/usr.sbin/rad/engine.c index b5fbe02226b..f3b6c7756e4 100644 --- a/usr.sbin/rad/engine.c +++ b/usr.sbin/rad/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.26 2024/11/21 13:17:58 claudio Exp $ */ +/* $OpenBSD: engine.c,v 1.27 2024/11/21 13:21:34 claudio Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -194,7 +194,7 @@ engine_dispatch_frontend(int fd, short event, void *bula) ibuf = &iev->ibuf; if (event & EV_READ) { - if ((n = imsgbuf_read(ibuf)) == -1 && errno != EAGAIN) + if ((n = imsgbuf_read(ibuf)) == -1) fatal("imsgbuf_read error"); if (n == 0) /* Connection closed. */ shut = 1; @@ -278,7 +278,7 @@ engine_dispatch_main(int fd, short event, void *bula) ibuf = &iev->ibuf; if (event & EV_READ) { - if ((n = imsgbuf_read(ibuf)) == -1 && errno != EAGAIN) + if ((n = imsgbuf_read(ibuf)) == -1) fatal("imsgbuf_read error"); if (n == 0) /* Connection closed. */ shut = 1; |