mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Delete deprecated ::sandbox2::Sandbox2::GetPid
and its remaining call sites.
PiperOrigin-RevId: 425910086 Change-Id: I2938ce589e83b5441c084994edde6a22c2007642
This commit is contained in:
parent
570898542b
commit
9ee3a26e8b
|
@ -203,7 +203,7 @@ absl::Status Sandbox::Init() {
|
|||
auto res = s2_->RunAsync();
|
||||
|
||||
comms_ = s2_->comms();
|
||||
pid_ = s2_->GetPid();
|
||||
pid_ = s2_->pid();
|
||||
|
||||
rpc_channel_ = absl::make_unique<RPCChannel>(comms_);
|
||||
|
||||
|
|
|
@ -107,9 +107,6 @@ class Sandbox2 final {
|
|||
void set_walltime_limit(absl::Duration limit) const;
|
||||
|
||||
// Returns the process id inside the executor.
|
||||
ABSL_DEPRECATED("Use pid() instead")
|
||||
pid_t GetPid() { return this->pid(); }
|
||||
|
||||
pid_t pid() const { return monitor_ != nullptr ? monitor_->pid_ : -1; }
|
||||
|
||||
// Gets the comms inside the executor.
|
||||
|
|
Loading…
Reference in New Issue
Block a user