Commit 20c641ca authored by Bob Owen's avatar Bob Owen
Browse files

Bug 1848454: Ensure an attempt is made to terminate the child when SpawnTarget...

Bug 1848454: Ensure an attempt is made to terminate the child when SpawnTarget fails and there is no job. r=handyman, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D186488
parent 285f842e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -666,7 +666,7 @@ ResultCode BrokerServicesBase::SpawnTarget(const wchar_t* exe_path,
    if (result != SBOX_ALL_OK) {
      // This may fail in the same way as Job associated processes.
      // crbug.com/480639.
      SpawnCleanup(target);
      target->Terminate();
      return result;
    }
  }