1. 27 Mar, 2012 1 commit
  2. 13 Feb, 2012 1 commit
  3. 08 Feb, 2012 1 commit
  4. 29 Jul, 2011 1 commit
  5. 25 Jul, 2011 1 commit
  6. 17 Jun, 2010 1 commit
  7. 14 Jun, 2010 1 commit
    • Ralf Habacker's avatar
      Bug 28460 - Refactored dbus configuration access. · 6f9077ee
      Ralf Habacker authored
      Libdbus uses several config variables. On unix these settings are read from
      environment variables by using _dbus_getenv.
      On other platforms like wince there are no environment variables available and
      _dbus_getenv needs an emulation for those plattforms (see
      To cleanup this emulation the appended patch adds a config api by adding
      _dbus_config_... functions.
      Also having all client config related functions listed in one header file
      provides a good overview about which config attributes  are available.
      The default implementation retrieves the config values from environment
      variables. For other os this could be easily extended or replaced by.
  8. 13 Apr, 2010 2 commits
  9. 22 Mar, 2010 1 commit
  10. 19 Mar, 2010 1 commit
  11. 06 Feb, 2010 1 commit
  12. 18 Dec, 2009 2 commits
  13. 01 Dec, 2009 1 commit
  14. 30 Nov, 2009 1 commit
  15. 29 Nov, 2009 1 commit
  16. 14 Jul, 2009 2 commits
  17. 13 Jul, 2009 1 commit
    • Colin Walters's avatar
      Bug 896 - Avoid race conditions reading message from exited process · 0e36cdd5
      Colin Walters authored
      Patch based on extensive work from Michael Meeks <michael.meeks@novell.com>,
      thanks to Dafydd Harries <dafydd.harries@collabora.co.uk>,
      Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> and others.
      The basic idea with this bug is that we effectively ignore errors
      on write.  Only when we're done reading from a connection do we
      close down a connection.  This avoids a race condition where
      if a process (such as dbus-send) exited while we still had
      data to read in the buffer, we'd miss that data.
  18. 10 Jul, 2009 1 commit
  19. 06 Jan, 2009 1 commit
  20. 20 Dec, 2008 1 commit
  21. 12 Jul, 2008 1 commit
    • Ray Strode's avatar
      Add new _dbus_get_environment call · 417c41f6
      Ray Strode authored
      It's a wrapper around the environ external variable.
      It will be important in the future when we allow
      bus clients to modify the environment of future
      activated clients. Presently, we just always use the
      bus daemon environment wholesale.
  22. 03 Oct, 2007 1 commit
  23. 24 Jul, 2007 1 commit
  24. 14 Jul, 2007 1 commit
  25. 12 Jul, 2007 1 commit
    • Havoc Pennington's avatar
      2007-07-12 Havoc Pennington <hp@redhat.com> · ed57b9c6
      Havoc Pennington authored
      	* dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): invert the test
      	for parsing hex as double to be sure it fails to work
      	* dbus/dbus-sysdeps.c (_dbus_string_parse_double): don't allow hex numbers.
  26. 15 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-15 Havoc Pennington <hp@redhat.com> · 43b944a0
      Havoc Pennington authored
      	* dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero)
      	(_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr)
      	(_dbus_strerror_from_errno): family of functions to abstract
      	errno, though these are somewhat bogus (really we should make our
      	socket wrappers not use errno probably - the issue is that any
      	usage of errno that isn't socket-related probably is not
      	cross-platform, so should either be in a unix-only file that can
      	use errno directly, or is a bug - these general errno wrappers
      	hide issues of this nature in non-socket code, while
      	socket-specific API changes would not since sockets are allowed
  27. 14 Jun, 2007 1 commit
  28. 09 Jun, 2007 1 commit
    • Havoc Pennington's avatar
      2007-06-09 Havoc Pennington <hp@redhat.com> · 23832672
      Havoc Pennington authored
      	* bus/dispatch.c (check_get_connection_unix_process_id): adapt
      	since sysdeps-unix.h stuff isn't included anymore
      	* bus/bus.c (bus_context_new): use more abstract functions to
      	change user, so they can be no-ops on Windows
      	* dbus/dbus-credentials.c, dbus/dbus-credentials.h,
      	dbus/dbus-credentials-util.c: new files containing a fully opaque
      	DBusCredentials data type to replace the old not opaque one.
      	* configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on
      	* dbus/dbus-userdb.h: prohibit on Windows, next step is to clean
      	up the uses of it in bus/*.c and factor out the parts of
      	cookie auth that depend on it
  29. 19 May, 2007 1 commit
  30. 16 Mar, 2007 1 commit
  31. 13 Mar, 2007 1 commit
  32. 01 Jan, 2007 1 commit
  33. 31 Dec, 2006 1 commit
    • Ralf Habacker's avatar
      * dbus/dbus-sysdeps-unix.c: moved _dbus_atomic_inc/dec() · 2dae3a60
      Ralf Habacker authored
      from dbus/dbus-sysdeps.c, windows version of _dbus_atomic_inc/dec()
      is in dbus-sysdeps-win.c (not in this patch).
      * dbus/dbus-sysdeps.h: DBusAtomic::value is long on windows to fit
      with InterlockedInc/Decrement. - Patches from Christian Ehrlicher
  34. 21 Oct, 2006 1 commit
    • Havoc Pennington's avatar
      2006-10-21 Havoc Pennington <hp@redhat.com> · e19ebac5
      Havoc Pennington authored
      	* Clean up Doxygen group markers for public API so Doxygen finds
      	everything (not comprehensively fixed for private API).
      	Means all remaining Doxygen warnings are just about missing docs
      	and thus pretty simple to resolve.
  35. 02 Oct, 2006 1 commit
    • John Palmieri's avatar
      * dbus/dbus-sysdeps.c (_dbus_abort): Remove from · ff99239b
      John Palmieri authored
        #ifndef DBUS_DISABLE_ASSERTS macro to fix distcheck
      * dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): Remove from
        #if !defined (DBUS_DISABLE_ASSERT) || defined(DBUS_BUILD_TESTS)
        macro because _dbus_abort calls it
      * tools/Makefile.am: Add dbus-launch.h to the source list so distcheck works
  36. 01 Oct, 2006 2 commits
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · 7020b573
      Havoc Pennington authored
      	* test/test-service.c (path_message_func): remove broken extra
      	unref that was hidden by the bugs in dbus-connection.c/dbus-bus.c
      	* test/test-shell-service.c (path_message_func): same fix
      	* dbus/dbus-connection.c
      	(_dbus_connection_get_dispatch_status_unlocked): break up the
      	function a little for clarity and fix the notification of
      	dbus-bus.c to not require dispatch to be complete
      	* dbus/dbus-connection.c (dbus_connection_unref): improve the
      	warning when you try to finalize an open connection.
    • Havoc Pennington's avatar
      2006-10-01 Havoc Pennington <hp@redhat.com> · a2129f7c
      Havoc Pennington authored
      	* dbus/dbus-connection.c (_dbus_connection_close_if_only_one_ref):
      	Add a hack to make DBusNewConnectionFunction work right.
      	* dbus/dbus-server-socket.c (handle_new_client_fd_and_unlock): use
      	the hack here. Also, fix the todo about refcount leak.
      	* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
      	and use the hack here
              * dbus/dbus-connection.c: Kill the "shared" flag vs. the
      	"shareable" flag; this was completely broken, since it meant
      	dbus_connection_open() returned a connection of unknown
      	shared-ness. Now, we always hold a ref on anything opened
      	as shareable.
      	Move the call to notify dbus-bus.c into
      	connection_forget_shared_unlocked, so libdbus consistently forgets
      	all its knowledge of a connection at once. This exposed numerous
      	places where things were totally broken if we dropped a ref inside
      	get_dispatch_status_unlocked where
      	connection_forget_shared_unlocked was previously, so move
      	connection_forget_shared_unlocked into
      	_dbus_connection_update_dispatch_status_and_unlock. Also move the
      	exit_on_disconnect here.
      	(shared_connections_shutdown): this assumed weak refs to the
      	shared connections; since we have strong refs now, the assertion
      	was failing and stuff was left in the hash. Fix it to close
      	still-open shared connections.
      	* bus/dispatch.c: fixup to use dbus_connection_open_private on the
      	debug pipe connections
      	* dbus/dbus-connection.c (dbus_connection_dispatch): only notify
      	dbus-bus.c if the closed connection is in fact shared
      	(_dbus_connection_close_possibly_shared): rename from
      	(dbus_connection_close, dbus_connection_open,
      	dbus_connection_open_private): Improve docs to explain the deal
      	with when you should close or unref or both
      	* dbus/dbus-bus.c
      	(_dbus_bus_notify_shared_connection_disconnected_unlocked): rename
      	from _dbus_bus_check_connection_and_unref_unlocked and modify to
      	loop over all connections
      	* test/test-utils.c (test_connection_shutdown): don't try to close
      	shared connections.
      	* test/name-test/test-threads-init.c (main): fix warnings in here
      	* dbus/dbus-sysdeps.c (_dbus_abort): support DBUS_BLOCK_ON_ABORT
      	env variable to cause blocking waiting for gdb; drop
      	DBUS_PRINT_BACKTRACE and just call _dbus_print_backtrace()
      	* configure.in: add -export-dynamic to libtool flags if assertions enabled
      	so _dbus_print_backtrace works.
      	* dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): use fprintf
      	instead of _dbus_verbose to print the backtrace, and diagnose lack
      	of -rdynamic/-export-dynamic