From 041477e3acbf3ab79799bfbf28c259fde8ae7e52 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 27 Nov 2023 15:12:12 +0100 Subject: [PATCH] fix: return a TIMEOUT instead of an EOF Signed-off-by: Andrea Terzolo --- userspace/libscap/engine/test_input/test_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libscap/engine/test_input/test_input.c b/userspace/libscap/engine/test_input/test_input.c index ffb36cdb12..fd54ec8ff1 100644 --- a/userspace/libscap/engine/test_input/test_input.c +++ b/userspace/libscap/engine/test_input/test_input.c @@ -59,7 +59,7 @@ static int32_t next(struct scap_engine_handle handle, scap_evt** pevent, uint16_ if (!data->events || data->event_count == 0) { - return SCAP_EOF; + return SCAP_TIMEOUT; } *pevent = *(data->events++);