Changeset cd621c2ce13e17f28a2aa89767ff1a14fe787306
- Timestamp:
- 10/18/11 17:55:32
(2 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1318960532 -0400
- git-parent:
[c172fd5c72852dc9800dc1eaa1b6434555e232fe]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1318960532 -0400
- Message:
jlog_ctx_write failures should be fatal
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb8d1fb4 |
rcd621c2 |
|
| 386 | 386 | if(lock) pthread_rwlock_rdlock(lock); |
|---|
| 387 | 387 | while(max > 0 && NULL != (line = jlog_asynch_pop(actx, &iter))) { |
|---|
| 388 | | jlog_ctx_write(actx->log, line->buf_dynamic ? |
|---|
| 389 | | line->buf_dynamic : |
|---|
| 390 | | line->buf_static, |
|---|
| 391 | | line->len); |
|---|
| | 388 | if(jlog_ctx_write(actx->log, line->buf_dynamic ? |
|---|
| | 389 | line->buf_dynamic : |
|---|
| | 390 | line->buf_static, |
|---|
| | 391 | line->len) == -1) { |
|---|
| | 392 | noitL(noit_error, "jlog_ctx_write failed: fatal\n"); |
|---|
| | 393 | abort(); |
|---|
| | 394 | } |
|---|
| 392 | 395 | if(line->buf_dynamic != NULL) free(line->buf_dynamic); |
|---|
| 393 | 396 | free(line); |
|---|