[Pkg-dspam-misc] Bug#702700: [dspam] Avoid active loop in daemon

Adrien Clerc adrien at antipoul.fr
Sun Mar 10 12:59:37 UTC 2013


Package: dspam
Version: 3.10.2+dfsg-7
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
Hi,

Currently, the daemon has an active loop. It calls select with a 2 
seconds timeout, just to to be sure that no signal was raised.
This could be avoided. I choose the self-pipe trick, cause it's the 
solution that integrate the most with the current code.
Using pselect would have meant blocking signals just before the call, 
and would have needed a re-enabling in the process request. I didn't 
have the time to appreciate the impact of that.

This has been submitted upstream on 
https://sourceforge.net/tracker/?func=detail&aid=3607521&group_id=250683&atid=1126467
I just hope that Debian packagers are faster than dspam main development 
team :)

--- System information. ---
Architecture: i386
Kernel: Linux 3.2.0-4-686-pae

Debian Release: 7.0
500 unstable ftp.fr.debian.org
1 experimental ftp.fr.debian.org

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 010_inactive_daemon.diff
Type: text/x-patch
Size: 2645 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dspam-misc/attachments/20130310/604fab4a/attachment.bin>


More information about the Pkg-dspam-misc mailing list