diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-16 14:30:18 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-16 14:30:18 +0000 |
commit | a6957b9ac1e95063c71654cd7c352bc9b634754e (patch) | |
tree | 6b4c707057909ab5bc808848bd0cb30062bcf26f /daemon | |
parent | 9fd6757e19e57f085b2ebf72b1078edbd4b7285e (diff) |
Propagate local server address to services
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/echo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/echo.c b/daemon/echo.c index 1fe23727..d6a852e1 100644 --- a/daemon/echo.c +++ b/daemon/echo.c @@ -373,6 +373,7 @@ int main(int argc, char *argv[]) DBusConnection *system_bus; GIOChannel *server_io; struct sigaction sa; + char *addr; start_logging("echo", "Bluetooth echo service ver %s", VERSION); @@ -388,6 +389,12 @@ int main(int argc, char *argv[]) sigaction(SIGCHLD, &sa, NULL); sigaction(SIGPIPE, &sa, NULL); + enable_debug(); + + addr = getenv("BLUETOOTHD_ADDRESS"); + + debug("Bluetooth daemon at %s", addr); + main_loop = g_main_loop_new(NULL, FALSE); system_bus = init_dbus(NULL, NULL, NULL); |