[PATCH] Properly handle short writes in sigint handlers

David Bremner david at tethera.net
Tue Jan 10 03:13:50 PST 2012


On Fri, 23 Dec 2011 23:10:35 +0400, Dmitry Kurochkin <dmitry.kurochkin at 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


More information about the notmuch mailing list