mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use new sandbox2::Comms ctor for default connection params
This change allows Sandbox2 to change how the default FD for comms is chosen. PiperOrigin-RevId: 479521810 Change-Id: Ia2ca1df95eb21783207ffb625c924790de20480d
This commit is contained in:
parent
3198ff06d3
commit
859e282d3b
|
@ -423,7 +423,7 @@ ABSL_ATTRIBUTE_WEAK int main(int argc, char* argv[]) {
|
||||||
// same FD, although this is not true. During process setup `dup2()` will be
|
// same FD, although this is not true. During process setup `dup2()` will be
|
||||||
// called to replace the FD `kSandbox2ClientCommsFD`.
|
// called to replace the FD `kSandbox2ClientCommsFD`.
|
||||||
// We do not use a new comms object here as the destructor would close our FD.
|
// We do not use a new comms object here as the destructor would close our FD.
|
||||||
sandbox2::Comms comms{sandbox2::Comms::kSandbox2ClientCommsFD};
|
sandbox2::Comms comms{sandbox2::Comms::kDefaultConnection};
|
||||||
sandbox2::ForkingClient s2client{&comms};
|
sandbox2::ForkingClient s2client{&comms};
|
||||||
|
|
||||||
// Forkserver loop.
|
// Forkserver loop.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user