Skip to content

Commit

Permalink
fix: return a TIMEOUT instead of an EOF
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 authored and poiana committed Nov 27, 2023
1 parent a894e67 commit 041477e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libscap/engine/test_input/test_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++);
Expand Down

0 comments on commit 041477e

Please sign in to comment.