[Nut-upsdev] Re: Common Power Management : NUT and HAL (stage 1)

Sjoerd Simons sjoerd at luon.net
Wed Aug 2 17:09:44 UTC 2006


On Wed, Aug 02, 2006 at 11:58:36AM -0400, David Zeuthen wrote:
> > I will work on fixing that in the code in the HAL tree so perhaps just
> > waiting for that to appear in addon-hid-ups.c?
> > 
> > > * I'm facing a race condition between udev privileges settings and the
> > > addon launch by HAL (need a sleep(2) in main-hal() to give time to
> > > udev to set the perms). This might be due to the current script I'm
> > > using on Debian, which mix hotplug and udev support (so shell script
> > > exec is a bit slow!). Maybe using native udev rules would solve this.

You should really try to fix races, working around with timeouts won't work on
slower (or faster) machines.

> So, the addon is actually launched with super user privileges so you
> don't need extra privileges at all. Unless the Debian hal package
> doesn't work this way. Sjoerd?

We don't patch anything in that area, so addons and probes are indeed started
as root (thatis in unstable and testing, but i assume development is done on
that).

  Sjoerd
-- 
Death is Nature's way of recycling human beings.



More information about the Nut-upsdev mailing list