summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpctl
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:21:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:21:35 +0000
commit1a0eb6e692853cb677467310a038e5fe280f3699 (patch)
tree51f8c73da0757429b74c6ef9238bcd6a78bea856 /usr.sbin/ldpctl
parente75872a2cea9594c5b07a18dd0e22720199b0aeb (diff)
Convert the common imsgbuf_read calls to the post EAGAIN world.
OK tb@
Diffstat (limited to 'usr.sbin/ldpctl')
-rw-r--r--usr.sbin/ldpctl/ldpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpctl/ldpctl.c b/usr.sbin/ldpctl/ldpctl.c
index 48974cc583a..1b9571e863c 100644
--- a/usr.sbin/ldpctl/ldpctl.c
+++ b/usr.sbin/ldpctl/ldpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpctl.c,v 1.34 2024/11/21 13:17:02 claudio Exp $
+/* $OpenBSD: ldpctl.c,v 1.35 2024/11/21 13:21:34 claudio Exp $
*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -210,7 +210,7 @@ main(int argc, char *argv[])
err(1, "write error");
while (!done) {
- if ((n = imsgbuf_read(ibuf)) == -1 && errno != EAGAIN)
+ if ((n = imsgbuf_read(ibuf)) == -1)
errx(1, "imsgbuf_read error");
if (n == 0)
errx(1, "pipe closed");