Changeset 620 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Apr 3, 2015, 3:38:44 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r619 r620 195 195 sem_id = CreateSemaphore( NULL, nsems, nsems+1, key); 196 196 if(sem_id==NULL){ 197 198 197 #ifdef DEBUG 199 198 fprintf(stderr,"Semaphore failed to create: %s\n", getLastErrorMessage()); … … 2056 2055 if(hasStoredExecuteResponse==true && status!=SERVICE_STARTED){ 2057 2056 semid lid=getShmLockId(m,1); 2058 if(lid<0) 2057 if(lid<0){ 2058 /* If the lock failed */ 2059 errorException(m,_("Lock failed."),"InternalError",NULL); 2060 xmlFreeDoc(doc); 2061 xmlCleanupParser(); 2062 zooXmlCleanupNs(); 2059 2063 return; 2064 } 2060 2065 else{ 2061 2066 #ifdef DEBUG -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r607 r620 2626 2626 size); 2627 2627 xmlFreeDoc (doc1); 2628 } 2629 } 2628 } 2629 else 2630 { 2631 if (cur5 != NULL 2632 && cur5->type == XML_CDATA_SECTION_NODE){ 2633 xmlDocPtr doc2 = xmlParseMemory((const char*)cur5->content,xmlStrlen(cur5->content)); 2634 xmlDocSetRootElement (doc1,xmlDocGetRootElement(doc2)); 2635 xmlDocDumpFormatMemoryEnc (doc1, &mv, 2636 &buffersize, 2637 "utf-8", 1); 2638 char size[1024]; 2639 sprintf (size, "%d", buffersize); 2640 addToMap (tmpmaps->content, "size", 2641 size); 2642 xmlFreeDoc (doc2); 2643 xmlFreeDoc (doc1); 2644 } 2645 } 2646 }else{ 2647 xmlNodePtr cur5 = cur4->children; 2648 while (cur5 != NULL 2649 && cur5->type != XML_CDATA_SECTION_NODE) 2650 cur5 = cur5->next; 2651 if (cur5 != NULL 2652 && cur5->type == XML_CDATA_SECTION_NODE){ 2653 xmlFree(mv); 2654 mv=xmlStrdup(cur5->content); 2655 } 2656 } 2630 2657 if (mv != NULL) 2631 2658 {
Note: See TracChangeset
for help on using the changeset viewer.