diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-27 14:35:47 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-29 12:30:02 +0100 |
commit | d98a587f766e00f50244cfa75008e75ee4af20f6 (patch) | |
tree | 4a48b590036bcbe7c406194cbfdc95537868aee0 /dbus/dbus-internals.h | |
parent | ced50f8be12ca91274c64bbf5455138e5f2ae7c3 (diff) | |
download | dbus-d98a587f766e00f50244cfa75008e75ee4af20f6.tar.gz |
_dbus_get_tmpdir: be thread-safe
Sharing a static variable between threads is not safe in general,
and this function is used in the shared libdbus (for nonce files),
so it can't rely on being single-threaded.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68610
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'dbus/dbus-internals.h')
-rw-r--r-- | dbus/dbus-internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 0856f8f7..e9ffb9e2 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -316,9 +316,10 @@ typedef enum _DBUS_LOCK_shutdown_funcs, _DBUS_LOCK_system_users, _DBUS_LOCK_message_cache, - /* index 10-11 */ + /* index 10-12 */ _DBUS_LOCK_shared_connections, _DBUS_LOCK_machine_uuid, + _DBUS_LOCK_sysdeps, _DBUS_N_GLOBAL_LOCKS } DBusGlobalLock; |