diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-05-20 01:32:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 02:09:32 +0200 |
commit | bfad32422f1f78bce4de1e88a4afb5cc295bb877 (patch) | |
tree | 6c5a5eaa9b653c0b52ad897fb9da727f5c510973 /dbus/dbus-message-private.h | |
parent | ec901d786f6de6e6f870279e2d955f491619c559 (diff) |
unix-fd: add logic to count unix fds the same way as allocated memory
This make all counters count both bytes of memory and unix fds.
Diffstat (limited to 'dbus/dbus-message-private.h')
-rw-r--r-- | dbus/dbus-message-private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/dbus-message-private.h b/dbus/dbus-message-private.h index 1e8b107a..03257a9b 100644 --- a/dbus/dbus-message-private.h +++ b/dbus/dbus-message-private.h @@ -112,7 +112,7 @@ struct DBusMessage unsigned int in_cache : 1; /**< Has been "freed" since it's in the cache (this is a debug feature) */ #endif - DBusList *size_counters; /**< 0-N DBusCounter used to track message size. */ + DBusList *counters; /**< 0-N DBusCounter used to track message size/unix fds. */ long size_counter_delta; /**< Size we incremented the size counters by. */ dbus_uint32_t changed_stamp : CHANGED_STAMP_BITS; /**< Incremented when iterators are invalidated. */ @@ -130,6 +130,8 @@ struct DBusMessage them when adding or removing them here. */ unsigned n_unix_fds; /**< Number of valid fds in the array */ unsigned n_unix_fds_allocated; /**< Allocated size of the array */ + + long unix_fd_counter_delta; /**< Size we incremented the unix fd counter by */ #endif }; |