projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: handle EINTR return value for bt_posix_fallocate
[babeltrace.git]
/
formats
/
ctf
/
ir
/
event-fields.c
diff --git
a/formats/ctf/ir/event-fields.c
b/formats/ctf/ir/event-fields.c
index aa7475d0952722512636af701237ba68a361a81c..3358ff0ed0f68af8055b7ab6c8a8436b0b3b0c33 100644
(file)
--- a/
formats/ctf/ir/event-fields.c
+++ b/
formats/ctf/ir/event-fields.c
@@
-2171,9
+2171,13
@@
int increase_packet_size(struct ctf_stream_pos *pos)
}
pos->packet_size += PACKET_LEN_INCREMENT;
}
pos->packet_size += PACKET_LEN_INCREMENT;
- ret = bt_posix_fallocate(pos->fd, pos->mmap_offset,
- pos->packet_size / CHAR_BIT);
+ do {
+ ret = bt_posix_fallocate(pos->fd, pos->mmap_offset,
+ pos->packet_size / CHAR_BIT);
+ } while (ret == EINTR);
if (ret) {
if (ret) {
+ errno = EINTR;
+ ret = -1;
goto end;
}
goto end;
}
This page took
0.027275 seconds
and
4
git commands to generate.