[PATCH] Properly handle short writes in sigint handlers

David Edmondson dme at dme.org
Fri Dec 23 00:10:33 PST 2011


Sorry for being slow.

Can you describe the situation in which you expect a write to stderr to
be a short write? (Without error.)

In that situation, what guarantee is there that the loop you've written
will terminate?

We're not talking about safeguarding a users' data here - this is a
short message to indicate that a tool is terminating due to a signal.
I'm concerned that the solution is worse than the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111223/6df08b62/attachment.pgp>


More information about the notmuch mailing list