Bug Tracker item #3607521, was opened at 2013-03-10 05:51
Message generated for change (Tracker Item Submitted) made by glandos
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3607521&group_id=250683
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Glandos (glandos)
Assigned to: Nobody/Anonymous (nobody)
Summary: Active loop in daemon could be avoided
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3607521&group_id=250683
|