[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: partial failures in write(2) (and read(2))
On Fri, Feb 05, 2021 at 08:10:06PM -0500, Mouse wrote:
> > It is possible for write() calls to fail partway through, after
> > already having written some data.
> It is. As you note later, it's also possible for read().
> The rightest thing to do, it seems to me, would be to return the error
> indication along with how much was successfully written (or read). But
> that, of course, requires a completely new API, which I gather is more
> intrusive than you want to get into here.
I think it could be done with a signal in combination with the existing
Main Index |
Thread Index |