Changeset 268 for branches/branch-1.2/zoo-kernel/service_internal.c
- Timestamp:
- Jul 16, 2011, 12:58:47 PM (13 years ago)
- Location:
- branches/branch-1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2
-
branches/branch-1.2/zoo-kernel/service_internal.c
r217 r268 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 } … … 1722 1725 else 1723 1726 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(_tmp->value,"=")+1); 1724 FILE* file=fopen(session_file_path,"w"); 1725 dumpMapsToFile(tmpSess,file); 1726 fclose(file); 1727 dumpMapsToFile(tmpSess,session_file_path); 1727 1728 } 1728 1729 }
Note: See TracChangeset
for help on using the changeset viewer.