Skip to content

Commit

Permalink
fix(userspace/sysdig): handle SCAP_FAILURE
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo committed Apr 15, 2024
1 parent 517e1b7 commit 69589e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/sysdig/csysdig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ captureinfo do_inspect(sinsp* inspector,

res = inspector->next(&ev);

if(res == SCAP_TIMEOUT || res == SCAP_FILTERED_EVENT)
if(res == SCAP_TIMEOUT || res == SCAP_FILTERED_EVENT || res == SCAP_FAILURE)
{
continue;
}
Expand Down
4 changes: 4 additions & 0 deletions userspace/sysdig/sysdig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,10 @@ captureinfo do_inspect(sinsp* inspector,
break;
}
res = inspector->next(&ev);
if(res == SCAP_FAILURE)
{
continue;
}
if(dumper && ev && res != SCAP_EOF)
{
dumper->dump(ev);
Expand Down

0 comments on commit 69589e9

Please sign in to comment.