fix: ensure utilityProcess only emits one 'exit' event (#44243)

fix: ensure utilityProcess only emits one exit
This commit is contained in:
Shelley Vohr 2024-10-16 10:47:12 +02:00 committed by GitHub
parent b5acebf3ba
commit df45474b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 11 deletions

View file

@ -105,6 +105,7 @@ class UtilityProcessWrapper final
int stdout_read_fd_ = -1;
int stderr_read_fd_ = -1;
bool connector_closed_ = false;
bool terminated_ = false;
std::unique_ptr<mojo::Connector> connector_;
blink::MessagePortDescriptor host_port_;
mojo::Receiver<node::mojom::NodeServiceClient> receiver_{this};