diff --git a/sandboxed_api/sandbox.cc b/sandboxed_api/sandbox.cc index b48fd7ec..10ee97cb 100644 --- a/sandboxed_api/sandbox.cc +++ b/sandboxed_api/sandbox.cc @@ -514,17 +514,6 @@ absl::Status Sandbox::SetWallTimeLimit(absl::Duration limit) const { return absl::OkStatus(); } -void Sandbox::Exit() const { - if (!is_active()) { - return; - } - s2_->set_walltime_limit(absl::Seconds(1)); - if (!rpc_channel_->Exit().ok()) { - LOG(WARNING) << "rpc_channel->Exit() failed, killing PID: " << pid(); - s2_->Kill(); - } -} - std::unique_ptr Sandbox::ModifyPolicy( sandbox2::PolicyBuilder* builder) { return builder->BuildOrDie(); diff --git a/sandboxed_api/sandbox.h b/sandboxed_api/sandbox.h index 96e990b0..37afb9c1 100644 --- a/sandboxed_api/sandbox.h +++ b/sandboxed_api/sandbox.h @@ -202,9 +202,6 @@ class Sandbox { // Provides a custom notifier for sandboxee events. May return nullptr. virtual std::unique_ptr CreateNotifier() { return nullptr; } - // Exits the sandboxee. - void Exit() const; - // The main sandbox2::Sandbox2 object. std::unique_ptr s2_; // Marks whether Sandbox2 result was already fetched.