Bug 1257786 - Proper init of LogModule for Nuwa r?khuey draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Tue, 22 Mar 2016 15:02:39 +0100
changeset 343377 8c75678fa4217068addeef33cf3cb1c0d354688a
parent 343376 ea6298e1b4f7e22ce2311b2b6a918822f0adb112
child 516756 a712d4a37e1cf865984050385e2b1b9fb9cb2a56
push id13605
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateTue, 22 Mar 2016 14:04:25 +0000
reviewerskhuey
bugs1257786
milestone48.0a1
Bug 1257786 - Proper init of LogModule for Nuwa r?khuey MozReview-Commit-ID: JucY7wAk160
ipc/glue/ProcessUtils_linux.cpp
--- a/ipc/glue/ProcessUtils_linux.cpp
+++ b/ipc/glue/ProcessUtils_linux.cpp
@@ -556,16 +556,18 @@ ProcLoaderServiceRun(pid_t aPeerPid, int
   gArgc = aArgc;
 
   {
     nsresult rv = XRE_InitCommandLine(aArgc, _argv);
     if (NS_FAILED(rv)) {
       MOZ_CRASH();
     }
 
+    mozilla::LogModule::Init();
+
     TransportDescriptor fd;
     fd.mFd = base::FileDescriptor(aFd, /*auto_close =*/false);
 
     MOZ_ASSERT(!sProcLoaderServing);
     MessageLoop loop;
 
     nsAutoPtr<ContentProcess> process;
     process = new ContentProcess(aPeerPid);