projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: posix_fadvise wrapper returns -ENOSYS on FreeBSD
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 37c73e7f771d90280a01c7f03b6d1e07befd6b71..3802eff659f9fc93788a178633ae3a7b50af4986 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-1254,8
+1254,9
@@
void lttng_consumer_sync_trace_file(struct lttng_consumer_stream *stream,
*/
ret = posix_fadvise(outfd, orig_offset - stream->max_sb_size,
stream->max_sb_size, POSIX_FADV_DONTNEED);
- if (ret) {
- WARN("posix_fadvise() error (%i)", ret);
+ if (ret && ret != -ENOSYS) {
+ errno = -ret;
+ PERROR("posix_fadvise");
}
}
This page took
0.024592 seconds
and
4
git commands to generate.