mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
ci: more logging
This commit is contained in:
@@ -886,6 +886,7 @@ void App::BrowserChildProcessCrashedOrKilled(
|
||||
}
|
||||
if (data.process_type == content::PROCESS_TYPE_UTILITY) {
|
||||
base::ProcessId pid = data.GetProcess().Pid();
|
||||
LOG(WARNING) << "Process " << pid << " crashed.";
|
||||
auto utility_process_wrapper = UtilityProcessWrapper::FromProcessId(pid);
|
||||
if (utility_process_wrapper)
|
||||
utility_process_wrapper->Shutdown(info.exit_code);
|
||||
|
||||
@@ -201,6 +201,7 @@ void UtilityProcessWrapper::OnServiceProcessLaunched(
|
||||
const base::Process& process) {
|
||||
DCHECK(node_service_remote_.is_connected());
|
||||
pid_ = process.Pid();
|
||||
LOG(WARNING) << "Utility process created with pid " << pid_;
|
||||
GetAllUtilityProcessWrappers().AddWithID(this, pid_);
|
||||
if (stdout_read_fd_ != -1) {
|
||||
EmitWithoutEvent("stdout", stdout_read_fd_);
|
||||
@@ -235,6 +236,7 @@ void UtilityProcessWrapper::CloseConnectorPort() {
|
||||
}
|
||||
|
||||
void UtilityProcessWrapper::Shutdown(int exit_code) {
|
||||
LOG(WARNING) << "Utility process shutdown with exit code " << exit_code;
|
||||
if (pid_ != base::kNullProcessId)
|
||||
GetAllUtilityProcessWrappers().Remove(pid_);
|
||||
node_service_remote_.reset();
|
||||
|
||||
Reference in New Issue
Block a user