зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
6ab5ea8887
Коммит
3929b10d7b
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче