CVS: cvs.openbsd.org: src

Claudio Jeker <[email protected]> Thu, 30 Jul 2026 05:49:39 -0600 (MDT)
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/07/30 05:49:39

Modified files:
	lib/libutil    : imsg-buffer.c 

Log message:
Correct EMSGSIZE handling in msgbuf_read to retry without control message

In msgbuf_read() the EMSGSIZE handling needs to retry without the control
buffer so that the message is read without the fd and forcing the kernel
to close the buffer). Else the call will fail immediatly again and the
system will busy loop.

OK tb@