diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-26 17:51:17 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-26 17:51:17 +0100 |
commit | 4989036e70a8538568d672602c96d828970df033 (patch) | |
tree | aab0d1d05452efb2034f09878b2eef5e1bc8706e /action.c | |
parent | 0be199af6cc2cd9a9acb96e97e1cd061affaa6d9 (diff) | |
parent | 611b3364491cf30dc866932a053ae925e1f182ac (diff) | |
download | rsyslog-4989036e70a8538568d672602c96d828970df033.tar.gz rsyslog-4989036e70a8538568d672602c96d828970df033.tar.bz2 rsyslog-4989036e70a8538568d672602c96d828970df033.zip |
Merge branch 'master' into tests
Conflicts:
ChangeLog
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -353,7 +353,13 @@ static rsRetVal actionTryResume(action_t *pThis) ASSERT(pThis != NULL); - ttNow = getActNow(pThis); /* cache "now" */ + /* for resume handling, we must always obtain a fresh timestamp. We used + * to use the action timestamp, but in this case we will never reach a + * point where a resumption is actually tried, because the action timestamp + * is always in the past. So we can not avoid doing a fresh time() call + * here. -- rgerhards, 2009-03-18 + */ + time(&ttNow); /* cache "now" */ /* first check if it is time for a re-try */ if(ttNow > pThis->ttResumeRtry) { |