> If a time event arrives during the while loop, the read/write could return
> with errno EINTR, unless this function is only used for task that don't
> require eventloop, such as truncate cache files.
Polipo's time event loop doesn't use signals. Actually, I basically
never use signals.
What is more, this function is used for writing to disk, and even in
programs using signals, EINTR with disk writes is very rare.
Finally, even if this function fails with EINTR, polipo will recover
later on (by noticing that the disk entry is too short, and writing
out the missing data). Unless an emergency memory purge happens in
between, no data will be lost.
But since I'm the friendly type, here's a change especially for you:
Fri May 23 23:55:30 CEST 2008 Juliusz Chroboczek <[EMAIL PROTECTED]>
* Protect against EINTR in rewriteEntry.
Protects against a condition that will never happen, but some of my
users are superstitious.
Juliusz
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users