summaryrefslogtreecommitdiff
path: root/uring.c
diff options
context:
space:
mode:
Diffstat (limited to 'uring.c')
-rw-r--r--uring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uring.c b/uring.c
index e1fad53..5e1b168 100644
--- a/uring.c
+++ b/uring.c
@@ -386,6 +386,8 @@ uring_tbuf_read_until(struct cfg *cfg, struct uring_task *task,
static int
uring_tbuf_eof(struct cfg *cfg, struct uring_task *task, int res)
{
+ assert_task_alive_or(DBG_UR, task, return -EINTR);
+
if (task->tbuf->len + 1 >= sizeof(task->tbuf->buf))
return -E2BIG;