From 1a0eb6e692853cb677467310a038e5fe280f3699 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 21 Nov 2024 13:21:35 +0000 Subject: Convert the common imsgbuf_read calls to the post EAGAIN world. OK tb@ --- usr.sbin/ikectl/ikectl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ikectl') diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c index 99fa755ff35..93f061c0460 100644 --- a/usr.sbin/ikectl/ikectl.c +++ b/usr.sbin/ikectl/ikectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikectl.c,v 1.33 2024/11/21 13:17:02 claudio Exp $ */ +/* $OpenBSD: ikectl.c,v 1.34 2024/11/21 13:21:34 claudio Exp $ */ /* * Copyright (c) 2007-2013 Reyk Floeter @@ -343,7 +343,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"); -- cgit v1.2.3