dbus-daemon fork mode
John (J5) Palmieri
johnp at redhat.com
Tue Nov 28 09:45:42 PST 2006
On Tue, 2006-11-28 at 17:29 +0100, 10function wrote:
> Hi D-Bus enthusiasts !
> I would like to have your view concerning the "fork" option for dbus-daemon (--fork --nofork on CLI ) or '<fork>' in XML config file.
> Is it just for detaching the process from terminal (stdin,stdout,stderr) or is it for performance reasons (i mean a child is spawn when bus usage is growing to treat more messages for example ...)
It is so you don't block when booting with init. If you were to have
nofork on you wouldn't be able to boot as it would get stuck launching
D-Bus. init expects daemons to fork. The --nofork option is there for
debugging with gdb and other tools which don't like when processes fork.
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus