Add TS_PROCESS_OOM termination status (issue #2510)

This commit is contained in:
Marshall Greenblatt 2018-09-24 10:50:01 +02:00
parent bb61775b61
commit 3a91ccd940
2 changed files with 7 additions and 0 deletions

View File

@ -789,6 +789,11 @@ typedef enum {
// Segmentation fault.
///
TS_PROCESS_CRASHED,
///
// Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.
///
TS_PROCESS_OOM,
} cef_termination_status_t;
///

View File

@ -2781,6 +2781,8 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
ts = TS_PROCESS_WAS_KILLED;
else if (status == base::TERMINATION_STATUS_PROCESS_CRASHED)
ts = TS_PROCESS_CRASHED;
else if (status == base::TERMINATION_STATUS_OOM)
ts = TS_PROCESS_OOM;
else if (status != base::TERMINATION_STATUS_ABNORMAL_TERMINATION)
return;