diff options
Diffstat (limited to 'sbin/iked/proc.c')
-rw-r--r-- | sbin/iked/proc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/iked/proc.c b/sbin/iked/proc.c index 337063f76e8..29c74825fca 100644 --- a/sbin/iked/proc.c +++ b/sbin/iked/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.44 2024/04/09 15:48:01 tobhe Exp $ */ +/* $OpenBSD: proc.c,v 1.45 2024/11/21 13:06:19 claudio Exp $ */ /* * Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org> @@ -860,10 +860,7 @@ proc_flush_imsg(struct privsep *ps, enum privsep_procid id, int n) for (; n < m; n++) { if ((ibuf = proc_ibuf(ps, id, n)) == NULL) return (-1); - do { - ret = imsg_flush(ibuf); - } while (ret == -1 && errno == EAGAIN); - if (ret == -1) + if ((ret = imsg_flush(ibuf)) == -1) break; imsg_event_add(&ps->ps_ievs[id][n]); } |