summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-11-25 17:20:55 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-11-25 17:20:55 +0100
commita3c81f500a4d952ce93162a730cadee8fbc8116b (patch)
treeab2dad94763e4045d1d38c1e9a3be94fc15dc68a /action.c
parentafafd9e0d7b333c54613670f4b9dbe3ae90ec51d (diff)
downloadrsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.tar.gz
rsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.tar.xz
rsyslog-a3c81f500a4d952ce93162a730cadee8fbc8116b.zip
bugfix: replacements for atomic operations for non-int sized types had problems.
At least one instance of that problem could potentially lead to abort (inside omfile).
Diffstat (limited to 'action.c')
-rw-r--r--action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/action.c b/action.c
index f3e26b13..0d298673 100644
--- a/action.c
+++ b/action.c
@@ -1388,7 +1388,7 @@ doSubmitToActionQNotAllMarkBatch(action_t *pAction, batch_t *pBatch)
} else {
bProcessMarkMsgs = 1;
}
- } while(ATOMIC_CAS(&pAction->f_time, lastAct,
+ } while(ATOMIC_CAS_time_t(&pAction->f_time, lastAct,
((msg_t*)(pBatch->pElem[i].pUsrp))->ttGenTime, &pAction->mutCAS) == 0);
}
if(bProcessMarkMsgs) {