Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: file.c Log Message: Fix potential configuration file corruption when running multihead. =================================================================== RCS file: /cvs/e/e16/e/src/file.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- file.c 7 Jan 2006 07:20:58 -0000 1.72 +++ file.c 12 May 2006 13:40:52 -0000 1.73 @@ -43,12 +43,9 @@ void Etmp(char *s) { - static unsigned long n_calls = 0; + static unsigned int n_calls = 0; - if (!n_calls) - n_calls = (unsigned long)time(NULL) + (unsigned long)getpid(); - Esnprintf(s, 1024, "%s/TMP_%lX", EDirUser(), n_calls); - n_calls++; + Esnprintf(s, 1024, "%s/TMP_%d_%d", EDirUser(), getpid(), n_calls++); } 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs