james wrote: > On Wed, Oct 13, 2010 at 01:20:17PM +0200, Simon Schampijer wrote: > > Ok, my point was that I do not have to unlink the files in Sugar, > > since powerd takes care of that. > > It would be more efficient for the activity to unlink the files rather > than leave the job to powerd. The activity can know it needs to be > done. powerd has to find out by calling kill(2) with a sig of 0 in > inhibit_files_present(). powerd executes in bash, and kill is a > builtin, so it's not a huge cost.
if it's trivial for the activity, sure, but it's not very expensive for powerd -- it's exactly the cost of a kill and an unlink. there's much juicier, much lower fruit on the tree to be had, i'm sure. paul =--------------------- paul fox, p...@laptop.org _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel