diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-11-25 15:44:49 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-11-25 15:44:49 +0100 |
commit | b9151f6a1708b2fb7e9518e73fcf42d86b0364a9 (patch) | |
tree | a981628801a7b422069ca8886969281ba2a9f886 /runtime | |
parent | 91cf297043e20d2dae8b00c20efadcc388357a86 (diff) | |
download | rsyslog-b9151f6a1708b2fb7e9518e73fcf42d86b0364a9.tar.gz rsyslog-b9151f6a1708b2fb7e9518e73fcf42d86b0364a9.tar.xz rsyslog-b9151f6a1708b2fb7e9518e73fcf42d86b0364a9.zip |
bugfix: atomic increment for msg object may not work correct on all platforms.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/msg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index cda206fc..a6923d52 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -60,9 +60,9 @@ struct msg { flowControl_t flowCtlType; /**< type of flow control we can apply, for enqueueing, needs not to be persisted because once data has entered the queue, this property is no longer needed. */ pthread_mutex_t mut; + int iRefCount; /* reference counter (0 = unused) */ bool bDoLock; /* use the mutex? */ bool bParseHOSTNAME; /* should the hostname be parsed from the message? */ - short iRefCount; /* reference counter (0 = unused) */ /* background: the hostname is not present on "regular" messages * received via UNIX domain sockets from the same machine. However, * it is available when we have a forwarder (e.g. rfc3195d) using local |