Re: [PATCH] tools: gpio-watch: Preserve line event read errors
From: Andy Shevchenko
Date: Fri Nov 20 2026 - 04:47:23 EST
On Fri, Nov 20, 2026 at 02:18:36PM +0800, Zhu Jun wrote:
> The short-read check sets errno to EIO even when read() returns -1,
> hiding errors such as EINTR. Set EIO only for a nonnegative short
> read and keep the original errno for a failed read.
Isn't somebody sent similar change a week ago?
Before sending something like this, always check mailing list archive.
--
With Best Regards,
Andy Shevchenko