dbus-daemon fork mode

Havoc Pennington hp at redhat.com
Tue Nov 28 08:52:38 PST 2006



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 ...)
> 
> On my side, benchs shows no differences with or without fork mode so i thing the first assert is the good one.
> 

the fork option makes the daemon become a daemon, without it you just 
get a regular foreground process. Since a dbus-daemon runs essentially 
forever, you probably don't want it to be a foreground process. But 
sometimes when debugging or whatever you might want it to be, e.g. to 
run it under gdb you wouldn't use --fork.

Havoc



More information about the dbus mailing list