fix: utility process exit code for graceful termination (#44698)

This commit is contained in:
Robo 2024-11-18 23:57:06 +09:00 committed by GitHub
parent d320840a54
commit 36e1a0bf00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 49 deletions

View file

@ -145,8 +145,8 @@ UtilityProcessWrapper::UtilityProcessWrapper(
}
}
if (!content::ServiceProcessHost::HasObserver(this))
content::ServiceProcessHost::AddObserver(this);
// Watch for service process termination events.
content::ServiceProcessHost::AddObserver(this);
mojo::PendingReceiver<node::mojom::NodeService> receiver =
node_service_remote_.BindNewPipeAndPassReceiver();