Tuesday, July 01, 2025

Re: BSD vi truncates files after internal error

On 1-7-2025 16:09, Hugo Osvaldo Barrera wrote:
> On BSD, write(2) only returns EAGAIN for files opened in non-blocking mode.
> vi most likely opens files in blocking mode, so this error is unreachable.
>
> See: https://man.openbsd.org/write.2#EAGAIN

Thanks for pointing this out. In my case it should be EACCES.

No comments:

Post a Comment