Commit 1d9d87db authored by Brad Lassey's avatar Brad Lassey
Browse files

bug 627767 - When starting up fennec, there are two fennec process, don't fork...

bug 627767 - When starting up fennec, there are two fennec process, don't fork for lib cache when there are no libs to cache r=dougt a=blocking-fennec
parent 34e77a30
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -695,7 +695,13 @@ Java_org_mozilla_gecko_GeckoAppShell_loadLibs(JNIEnv *jenv, jclass jGeckoAppShel

  loadLibs(str);
  jenv->ReleaseStringUTFChars(jApkName, str);
  if (extractLibs && cache_mapping) {
  bool haveLibsToWrite = false;
  if (cache_mapping && extractLibs)
    for (int i = 0; i < cache_count && !haveLibsToWrite; i++)
      if (cache_mapping[i].buffer)
        haveLibsToWrite = true;

  if (haveLibsToWrite) {
    if (!fork()) {
      sleep(10);
      nice(10);