Skip to content

Commit

Permalink
fix(userspace): rethrow inspector open exceptions
Browse files Browse the repository at this point in the history
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
  • Loading branch information
2 people authored and poiana committed Jul 15, 2020
1 parent 596e7ee commit a447b69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions userspace/falco/falco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,11 +1107,9 @@ int falco_init(int argc, char **argv)
// Falco uses a ptrace(2) based userspace implementation.
// Regardless of the implementation, the underlying method remains the same.
inspector->open_udig();
return;
}
else
{
inspector->open();
}
inspector->open();
};
open_t open_nodriver_cb = [](sinsp* inspector) {
inspector->open_nodriver();
Expand Down Expand Up @@ -1145,6 +1143,7 @@ int falco_init(int argc, char **argv)
}
open_f(inspector);
}
rethrow_exception(current_exception());
}
}

Expand Down

0 comments on commit a447b69

Please sign in to comment.