fix: utilityProcess
pid should be undefined
after exit (#44693)
fix: utilityProcess pid should be undefined after exit Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
a6a0c4cb6d
commit
313f9030d2
3 changed files with 25 additions and 1 deletions
|
@ -254,6 +254,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