mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
Add TS_PROCESS_OOM termination status (issue #2510)
This commit is contained in:
parent
bb61775b61
commit
3a91ccd940
@ -789,6 +789,11 @@ typedef enum {
|
|||||||
// Segmentation fault.
|
// Segmentation fault.
|
||||||
///
|
///
|
||||||
TS_PROCESS_CRASHED,
|
TS_PROCESS_CRASHED,
|
||||||
|
|
||||||
|
///
|
||||||
|
// Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.
|
||||||
|
///
|
||||||
|
TS_PROCESS_OOM,
|
||||||
} cef_termination_status_t;
|
} cef_termination_status_t;
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2781,6 +2781,8 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
|
|||||||
ts = TS_PROCESS_WAS_KILLED;
|
ts = TS_PROCESS_WAS_KILLED;
|
||||||
else if (status == base::TERMINATION_STATUS_PROCESS_CRASHED)
|
else if (status == base::TERMINATION_STATUS_PROCESS_CRASHED)
|
||||||
ts = TS_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)
|
else if (status != base::TERMINATION_STATUS_ABNORMAL_TERMINATION)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user