mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245513 - Use _exit(0) to exit in B2G debug content processes. r=froydnj
This skips destructors, so hopefully it avoids some odd behaviors.
This commit is contained in:
parent
55737a5491
commit
56f6791f9b
@ -1042,13 +1042,13 @@ ShutdownXPCOM(nsIServiceManager* aServMgr)
|
||||
NS_LogTerm();
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK)
|
||||
// This exit(0) call is intended to be temporary, to get shutdown leak
|
||||
// checking working on Linux.
|
||||
// This _exit(0) call is intended to be temporary, to get shutdown leak
|
||||
// checking working on non-B2G platforms.
|
||||
// On debug B2G, the child process crashes very late. Instead, just
|
||||
// give up so at least we exit cleanly. See bug 1071866.
|
||||
if (XRE_IsContentProcess()) {
|
||||
NS_WARNING("Exiting child process early!");
|
||||
exit(0);
|
||||
_exit(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user