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:
Lorenzo Fontana 2020-07-15 11:38:53 +02:00 committed by poiana
parent 596e7ee303
commit a447b6996e

View File

@ -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();
@ -1145,6 +1143,7 @@ int falco_init(int argc, char **argv)
}
open_f(inspector);
}
rethrow_exception(current_exception());
}
}