From 03d044b88dd1377281caa44c0133d9f22579ba90 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 28 Nov 2026 22:16:45 +0100 Subject: Add a generation to a task on the workqueue to prevent its result being sent to the next client reusing the fd --- src/ot_workqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ot_workqueue.h') diff --git a/src/ot_workqueue.h b/src/ot_workqueue.h index d8f30d6..982292e 100644 --- a/src/ot_workqueue.h +++ b/src/ot_workqueue.h @@ -64,7 +64,7 @@ void workqueue_pushsuccess(ot_taskid taskid); ot_taskid workqueue_poptask(ot_tasktype *tasktype); int workqueue_pushresult(ot_taskid taskid, size_t iovec_entries, struct iovec *iovector); int workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec); -int64_t workqueue_popresult(size_t *iovec_entries, struct iovec **iovector, int *is_partial); +int64_t workqueue_popresult(size_t *iovec_entries, struct iovec **iovector, int *is_partial, uint32_t *generation); void workqueue_init(void); void workqueue_deinit(void); -- cgit v1.3