Re: [PATCH] Properly handle short writes in sigint handlers

Subject: Re: [PATCH] Properly handle short writes in sigint handlers

Date: Tue, 10 Jan 2012 07:13:50 -0400

To: Dmitry Kurochkin, Austin Clements, notmuch@notmuchmail.org

Cc:

From: David Bremner


On Fri, 23 Dec 2011 23:10:35 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> Hi Austin.
> 
> I think we should put the write loop into a separate function and reuse
> it.

I could go either way on this, unless there is somewhere else the code
is actually needed at the moment.

> 
> Also, does it make sense to add a retry counter to prevent infinite loop
> if write keeps returning 0?

I wonder about this too. Is this possibility ignorable Austin?

d

Thread: