SIGPIPE handling in nnrpd
Russ Allbery
rra at stanford.edu
Mon Jul 19 17:11:14 UTC 2004
Heath Kehoe <hakehoe at avalon.net> writes:
> The comment above the signal(SIGPIPE...) call says it's there to get out
> of long write loops.
> It appears that PushIOb doesn't check for error returns of xwrite.
> PushIOv does. I'll also modify PushIOb to check for an error return and
> do an exit, the way that PushIOv does. I'll look around for any other
> writes that aren't checked for error, and fix those, so that there's no
> need for the sigpipe handler.
Sounds great to me.
ExitWithStats and signal handling need to be completely reworked at some
point since it was designed in a simpler age with simpler worries, but
this is a good step to take until then.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list