parent
a8177d9e89
commit
019c7424b3
|
@ -268,9 +268,9 @@ precache(void)
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "/tmp/.e-precache");
|
snprintf(buf, sizeof(buf), "/tmp/.e-precache");
|
||||||
f = fopen(buf, "r");
|
f = fopen(buf, "r");
|
||||||
if (!f) exit(0);
|
if (!f) return;
|
||||||
unlink(buf);
|
unlink(buf);
|
||||||
if (fork()) exit(0);
|
if (fork()) return;
|
||||||
while (fgets(buf, sizeof(buf), f));
|
while (fgets(buf, sizeof(buf), f));
|
||||||
rewind(f);
|
rewind(f);
|
||||||
while (fgets(buf, sizeof(buf), f))
|
while (fgets(buf, sizeof(buf), f))
|
||||||
|
@ -358,6 +358,7 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
void *lib, *func;
|
void *lib, *func;
|
||||||
|
|
||||||
|
do_precache = 0;
|
||||||
/* sanity checks - if precache might fail - check here first */
|
/* sanity checks - if precache might fail - check here first */
|
||||||
lib = dlopen("libevas.so", RTLD_GLOBAL | RTLD_LAZY);
|
lib = dlopen("libevas.so", RTLD_GLOBAL | RTLD_LAZY);
|
||||||
if (!lib) dlopen("libevas.so.1", RTLD_GLOBAL | RTLD_LAZY);
|
if (!lib) dlopen("libevas.so.1", RTLD_GLOBAL | RTLD_LAZY);
|
||||||
|
|
Loading…
Reference in New Issue