On Tue, Sep 6, 2011 at 4:36 PM, Paul Fox <[email protected]> wrote: > - is there anything special about the network inhibit? i wonder if > we should future-proof this by making it a generic > "inhibit-suspend"/"allow-suspend" message? it might have other > uses. but in that case, the requests have to nest correctly. so > maybe something like: > > inhibit-suspend) > : $(( no_suspend++ )) > ;; > > allow-suspend) > : $(( no_suspend = (no_suspend > 0) ? no_suspend - 1 : 0 )) > ;; > > there may be value, though, in knowing who sent the message, if > only for debugging -- that information can be passed as a second > argument on the event. (the first argument should be a timestamp.)
Sounds like a good idea to me, so I've implemented this exactly as suggested. > - does powerd-dbus always die correctly and cleanly when powerd dies? Yes, the init system kills it. But I've made this more explicit in exit_actions. New version: http://dev.laptop.org/git/users/dsd/powerd _______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
