mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Fix restarting global forkserver
PiperOrigin-RevId: 376643949 Change-Id: I5811e8b8a9f5e74cab21d021c8e83b2a4b91818a
This commit is contained in:
parent
aa568597b0
commit
e87a052e61
|
@ -121,7 +121,7 @@ GlobalForkserverStartModeSet GetForkserverStartMode() {
|
||||||
|
|
||||||
std::unique_ptr<GlobalForkClient> StartGlobalForkServer() {
|
std::unique_ptr<GlobalForkClient> StartGlobalForkServer() {
|
||||||
file_util::fileops::FDCloser exec_fd(
|
file_util::fileops::FDCloser exec_fd(
|
||||||
sapi::EmbedFile::GetEmbedFileSingleton()->GetFdForFileToc(
|
sapi::EmbedFile::GetEmbedFileSingleton()->GetDupFdForFileToc(
|
||||||
forkserver_bin_embed_create()));
|
forkserver_bin_embed_create()));
|
||||||
SAPI_RAW_CHECK(exec_fd.get() >= 0, "Getting FD for init binary failed");
|
SAPI_RAW_CHECK(exec_fd.get() >= 0, "Getting FD for init binary failed");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user