From 68027e8a8f6e7de5d63c9b0ccb580ada2cef5d51 Mon Sep 17 00:00:00 2001 From: Marcin Mielczarczyk Date: Thu, 1 Sep 2022 13:45:55 +0200 Subject: [PATCH] [ARRISEOS-42363] Call _exit() at WPEWebProcess failure --- WebKitBrowser/WebKitImplementation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebKitBrowser/WebKitImplementation.cpp b/WebKitBrowser/WebKitImplementation.cpp index 6d16a16bd7..ae0f496a34 100644 --- a/WebKitBrowser/WebKitImplementation.cpp +++ b/WebKitBrowser/WebKitImplementation.cpp @@ -2607,7 +2607,7 @@ static GSourceFuncs _handlerIntervention = SYSLOG(Trace::Fatal, (_T("CRASH: WebProcess terminated due to memory limit: exiting ..."))); break; } - exit(1); + _exit(1); } static void closeCallback(WebKitWebView*, WebKitImplementation* browser) { @@ -3337,8 +3337,8 @@ static GSourceFuncs _handlerIntervention = /* static */ void webProcessDidCrash(WKPageRef, const void*) { - SYSLOG(Trace::Fatal, (_T("CRASH: WebProcess crashed, exiting..."))); - exit(1); + SYSLOG(Trace::Fatal, (_T("CRASH: WebProcess crashed, calling _exit()..."))); + _exit(1); } #endif // !WEBKIT_GLIB_API } // namespace Plugin