fix: utility process exit code for graceful termination (#44749)
This commit is contained in:
parent
ee66bf9381
commit
c90509c2bc
4 changed files with 30 additions and 49 deletions
|
@ -73,7 +73,7 @@ class UtilityProcessWrapper final
|
|||
void HandleTermination(uint64_t exit_code);
|
||||
|
||||
void PostMessage(gin::Arguments* args);
|
||||
bool Kill() const;
|
||||
bool Kill();
|
||||
v8::Local<v8::Value> GetOSProcessId(v8::Isolate* isolate) const;
|
||||
|
||||
// mojo::MessageReceiver
|
||||
|
@ -99,6 +99,7 @@ class UtilityProcessWrapper final
|
|||
int stderr_read_fd_ = -1;
|
||||
bool connector_closed_ = false;
|
||||
bool terminated_ = false;
|
||||
bool killed_ = false;
|
||||
std::unique_ptr<mojo::Connector> connector_;
|
||||
blink::MessagePortDescriptor host_port_;
|
||||
mojo::Remote<node::mojom::NodeService> node_service_remote_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue