Fix restarting global forkserver

PiperOrigin-RevId: 376643949
Change-Id: I5811e8b8a9f5e74cab21d021c8e83b2a4b91818a
This commit is contained in:
Wiktor Garbacz 2021-05-31 02:19:01 -07:00 committed by Copybara-Service
parent aa568597b0
commit e87a052e61

View File

@ -121,7 +121,7 @@ GlobalForkserverStartModeSet GetForkserverStartMode() {
std::unique_ptr<GlobalForkClient> StartGlobalForkServer() {
file_util::fileops::FDCloser exec_fd(
sapi::EmbedFile::GetEmbedFileSingleton()->GetFdForFileToc(
sapi::EmbedFile::GetEmbedFileSingleton()->GetDupFdForFileToc(
forkserver_bin_embed_create()));
SAPI_RAW_CHECK(exec_fd.get() >= 0, "Getting FD for init binary failed");