]> diplodocus.org Git - nmh/commit
Don't recurse in advertise() on writev(2) error, just write(2).
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 12:04:12 +0000 (13:04 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 12:04:12 +0000 (13:04 +0100)
commit390acba226dd2bce2335ffed2318a79d554861da
treefb3666e9ecd4326316281542735d0bbffb1ead31
parent86b1fbb19b287c67f43fd280a13c81eea72583a3
Don't recurse in advertise() on writev(2) error, just write(2).
Some errors, e.g. EPIPE, cause the advise()'s call to another
advertise() to fail again, ad segvinitum when stack busts.  Instead,
snprintf(3) and write(2) that single string, ignoring any error.
sbr/error.c