Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/preload
Modified Files:
e_precache.c
Log Message:
if a func hasn;t been called yet and preceache is now off - dont go open it
up again
===================================================================
RCS file: /cvs/e/e17/apps/e/src/preload/e_precache.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_precache.c 23 Oct 2006 13:49:06 -0000 1.2
+++ e_precache.c 29 Oct 2006 11:00:32 -0000 1.3
@@ -6,7 +6,7 @@
static void *lib_ecore_file = NULL;
static void *lib_eet = NULL;
-static int *e_precache_end = 0;
+static int *e_precache_end = NULL;
/* internal calls */
static int log_fd = -1;
@@ -18,6 +18,10 @@
char buf[4096] = "DUMMY", *home;
if (log_fd != -1) return;
+ if (!e_precache_end) e_precache_end = dlsym(NULL, "e_precache_end");
+ if (!e_precache_end) return;
+ if (*e_precache_end) return;
+
#ifdef HAVE_UNSETENV
unsetenv("LD_PRELOAD");
#else
@@ -28,9 +32,8 @@
snprintf(buf, sizeof(buf), "%s/.e-precache", home);
else
snprintf(buf, sizeof(buf), "/tmp/.e-precache");
- log_fd = open(buf, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR|S_IWUSR);
- do_log = 1;
- e_precache_end = dlsym(NULL, "e_precache_end");
+ log_fd = open(buf, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
+ if (log_fd) do_log = 1;
}
static void
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs