fix: utilityProcess
pid should be undefined
after exit (#44677)
fix: utilityProcess pid should be undefined after exit
This commit is contained in:
parent
15ff999bdc
commit
dd50afa8c2
3 changed files with 25 additions and 1 deletions
|
@ -255,6 +255,8 @@ void UtilityProcessWrapper::HandleTermination(uint64_t exit_code) {
|
|||
|
||||
if (pid_ != base::kNullProcessId)
|
||||
GetAllUtilityProcessWrappers().Remove(pid_);
|
||||
|
||||
pid_ = base::kNullProcessId;
|
||||
CloseConnectorPort();
|
||||
EmitWithoutEvent("exit", exit_code);
|
||||
Unpin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue