[exim-dev] [Bug 1053] log_write() doesn't handle interrupted…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Phil Pennock
Päiväys:  
Vastaanottaja: exim-dev
Vanhat otsikot: [exim-dev] [Bug 1053] New: log_write() doesn't handle interrupted writes to log-files
Aihe: [exim-dev] [Bug 1053] log_write() doesn't handle interrupted writes to log-files
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1053




--- Comment #11 from Phil Pennock <pdp@???> 2011-11-22 19:01:00 ---
On short write, that patch will write out the content repeatedly, instead of
offsetting to only write what still needs to go out.

So, I wasn't absolutely sure we really were seeing short writes, thus my patch
only added EINTR handling. Your patch fixing things for you suggests that what
is happening is: on SIGHUP, write() is returning 0, a short write of nothing.
Thus you don't see the repeated content, because there was nothing to repeat.

Ugh.

I'm writing a better fix now.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email