Question about enable polling.

Kay Sievers kay.sievers at vrfy.org
Mon Oct 4 09:41:22 PDT 2010


On Mon, Oct 4, 2010 at 17:42, Kay Sievers <kay.sievers at vrfy.org> wrote:
> On Mon, Oct 4, 2010 at 17:30, Stef Bon <stef at bononline.nl> wrote:
>
>> To be sure, the command
>>
>> udisk --poll-for-media /dev/sr0
>>
>> results in:
>> : > ps aux | grep udisks | grep -v grep
>> root      2792  0.0  0.0  14408  3060 ?        SNl  12:09   0:00
>> /usr/lib/udisks/udisks-daemon
>> root      2793  0.0  0.0   5884   668 ?        SN   12:09   0:03
>> udisks-daemon: polling /dev/sr0 /dev/sdc /dev/sdd /dev/sr1
>>
>> So while giving the command to poll the /dev/sr0 device only, it starts
>> polling all the removable devices. That's what I mean with not intended
>> behaviour. You mention that the intended behaviour is only polling the
>> device on the command line right?
>
> I think the polling is started even before you run that command.
>
> Make sure you start udisks somehow, its usually done by the desktop
> calling into D-Bus.

Maybe I wasn't clear. Running the above command probably causes the
D-Bus bus activation of the udisks daemon. The actual --poll-for-media
does not specifically start the periodic polling, it starts the
daemon. With the daemon startup, periodic polling is always started
too.

Kay


More information about the devkit-devel mailing list