Thread (58 messages) 58 messages, 4 authors, 2023-12-28

Re: [PATCH v2 02/11] reftable: handle interrupted reads

From: Patrick Steinhardt <hidden>
Date: 2023-12-11 09:08:31

On Fri, Dec 08, 2023 at 04:30:02PM -0500, Taylor Blau wrote:
On Fri, Dec 08, 2023 at 03:53:02PM +0100, Patrick Steinhardt wrote:
quoted
There are calls to pread(3P) and read(3P) where we don't properly handle
interrupts. Convert them to use `pread_in_full()` and `read_in_full()`,
Just checking... do you mean "interrupt" in the kernel sense? Or are you
referring to the possibility of short reads/writes (in later patches)?
Both. The callsites I'm converting are explicitly checking that they get
the exact number of requested bytes. That means that we'll have to loop
both around EINTR/EAGAIN, but also around short reads.

Patrick

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help