Creating objects on the same bus_name from multiple processes.
dskippy at ccs.neu.edu
Sat May 8 09:34:57 PDT 2010
Should I just scrap D-Bus all together and write my own inter-process
communication? Are their any other IPC libraries that can handle
something like this?
On Sat, May 8, 2010 at 3:23 AM, Thiago Macieira <thiago at kde.org> wrote:
> Em Sábado 8. Maio 2010, às 00.02.18, Mike MacHenry escreveu:
>> I have a program that is designed as follows: There is web service
>> running on Apache that is capable of spawning off daemon processes
>> that serve the request. These daemon processes are producing audio
>> streams that are sent to icecast. I would like each one of these
>> streams to register a D-Bus object that other web services can connect
>> to and control the audio.
>> The problem I'm having is that when I create one of these processes,
>> it creates a bus_name and an object_path and that all works fine. But
>> when I try to run a second one, the bus_name already belongs to the
>> first process. I cannot simply add an object to the agreed upon
>> I don't think I can give each instance its own bus_name because there
>> needs to be an XML file in /etc/dbus-1/system.d/ for the server to
>> govern permissions.
>> Does anyone know the proper way to use D-Bus to do something like this?
> The proper way to do this is to not use the system bus for this task.
> You want an "Apache http bus" which doesn't exist.
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
> dbus mailing list
> dbus at lists.freedesktop.org
More information about the dbus