Changeset 255
- Timestamp:
- Jul 14, 2011, 2:46:27 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal.c
r254 r255 173 173 } 174 174 #else 175 175 176 void unhandleStatus(maps *conf){ 176 177 int shmid,i; … … 209 210 if ((shmid = shmget(key, SHMSZ, IPC_CREAT | 0666)) < 0) { 210 211 #ifdef DEBUG 211 fprintf(stderr,"shmget failed to update value\n");212 fprintf(stderr,"shmget failed to create new Shared memory segment\n"); 212 213 #endif 213 214 }else{ … … 220 221 tmpMap=getMapFromMaps(conf,"lenv","status"); 221 222 s1=shm; 222 for(s=tmpMap->value; s!=NULL;s++)223 for(s=tmpMap->value;*s!=NULL && *s!=0;s++){ 223 224 *s1++=*s; 225 } 226 *s1=NULL; 224 227 shmdt((void *)shm); 225 228 } -
trunk/zoo-services/utils/status/Makefile
r51 r255 1 CFLAGS=-I../../../ zoo-kernel/ -I./ `xslt-config --cflags` `xml2-config --cflags`-DLINUX_FREE_ISSUE #-DDEBUG1 CFLAGS=-I../../../thirds/cgic206/ -I../../../zoo-kernel/ -I./ `xslt-config --cflags` `xml2-config --cflags` -lintl -lfcgi -lcrypto -DLINUX_FREE_ISSUE #-DDEBUG 2 2 # if JS_ENABLED flag is set to true in your ZOO-Kernel Makefile then you'll have 3 3 # uncomment the following line -
trunk/zoo-services/utils/status/service.c
r216 r255 72 72 char tmp[128]; 73 73 sprintf(tmp,"_%s.xml",tmpMap->value); 74 while ((dp = readdir(dirp)) != NULL) 74 while ((dp = readdir(dirp)) != NULL){ 75 #ifdef DEBUG 76 fprintf(stderr,"File : %s searched : %s\n",dp->d_name,tmp); 77 #endif 75 78 if(strstr(dp->d_name,tmp)!=0){ 76 79 sprintf(fileName,"%s/%s",tmpTmap->value,dp->d_name); 77 80 hasFile=1; 78 81 } 82 } 79 83 }else{ 80 84 char tmp[1024];
Note: See TracChangeset
for help on using the changeset viewer.