mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-16 05:13:50 +00:00
fix(userspace): rethrow inspector open exceptions
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
This commit is contained in:
parent
596e7ee303
commit
a447b6996e
@ -1107,11 +1107,9 @@ int falco_init(int argc, char **argv)
|
|||||||
// Falco uses a ptrace(2) based userspace implementation.
|
// Falco uses a ptrace(2) based userspace implementation.
|
||||||
// Regardless of the implementation, the underlying method remains the same.
|
// Regardless of the implementation, the underlying method remains the same.
|
||||||
inspector->open_udig();
|
inspector->open_udig();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
inspector->open();
|
||||||
{
|
|
||||||
inspector->open();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
open_t open_nodriver_cb = [](sinsp* inspector) {
|
open_t open_nodriver_cb = [](sinsp* inspector) {
|
||||||
inspector->open_nodriver();
|
inspector->open_nodriver();
|
||||||
@ -1145,6 +1143,7 @@ int falco_init(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
open_f(inspector);
|
open_f(inspector);
|
||||||
}
|
}
|
||||||
|
rethrow_exception(current_exception());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user