comparison libgaim/dbus-server.c @ 14898:64733c315986

[gaim-migrate @ 17670] This fixes the dbus exit(1) problem -- we may still have a bug, or dbus may. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sun, 05 Nov 2006 14:54:50 +0000
parents 9c884b84afb9
children 06ae7ffc47e3
comparison
equal deleted inserted replaced
14897:e429c4ebbae5 14898:64733c315986
576 { 576 {
577 init_error = g_strdup_printf(N_("Failed to get connection: %s"), error.message); 577 init_error = g_strdup_printf(N_("Failed to get connection: %s"), error.message);
578 dbus_error_free(&error); 578 dbus_error_free(&error);
579 return; 579 return;
580 } 580 }
581
582 /* Do not allow libdbus to exit on connection failure (This may
583 work around random exit(1) on SIGPIPE errors) */
584 dbus_connection_set_exit_on_disconnect (gaim_dbus_connection, FALSE);
581 585
582 if (!dbus_connection_register_object_path(gaim_dbus_connection, 586 if (!dbus_connection_register_object_path(gaim_dbus_connection,
583 DBUS_PATH_GAIM, &vtable, NULL)) 587 DBUS_PATH_GAIM, &vtable, NULL))
584 { 588 {
585 init_error = g_strdup_printf(N_("Failed to get name: %s"), error.name); 589 init_error = g_strdup_printf(N_("Failed to get name: %s"), error.name);