projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle the inactive streams
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 794e428c51d069a97354826b17f0f391afbafcbf..5f263cd36e9a50bae29981ba1d9daba24920c62d 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-471,6
+471,11
@@
int ctf_read_event(struct bt_stream_pos *ppos, struct ctf_stream_definition *str
*/
if (unlikely(pos->offset == EOF))
return EOF;
+
+ if (pos->content_size == 0) {
+ /* Stream is inactive for now (live reading). */
+ return EAGAIN;
+ }
assert(pos->offset < pos->content_size);
/* Read event header */
This page took
0.023855 seconds
and
4
git commands to generate.