Changeset 5 for trunk/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Apr 20, 2010, 5:34:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_service_loader.c
r2 r5 482 482 tmp_output=tmp_output->next; 483 483 } 484 //dumpMaps(request_output_real_format);485 484 } 486 485 … … 601 600 else { 602 601 xmlInitParser(); 603 //dumpMap(postRequest);604 602 #ifdef DEBUG 605 603 fflush(stderr); … … 608 606 #endif 609 607 xmlDocPtr doc = 610 xmlParseMemory(postRequest->value,cgiContentLength); //strlen(postRequest->value));608 xmlParseMemory(postRequest->value,cgiContentLength); 611 609 #ifdef DEBUG 612 610 fprintf(stderr,"AFTER\n"); … … 1434 1432 fflush(stderr); 1435 1433 #endif 1436 //return 1;1437 1434 } 1438 1435 1439 //dlclose(so);1436 dlclose(so); 1440 1437 } else { 1441 1438 /** … … 1472 1469 if(strcmp(mtoupper(r_inputs->value),"JS")==0){ 1473 1470 eres=zoo_js_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1474 //dumpMaps(request_output_real_format);1475 //exit(-1);1476 1471 } 1477 1472 else … … 1524 1519 freopen(tmp1 , "w+", stdout); 1525 1520 fclose(stdin); 1526 fclose(stderr); 1521 r_inputs=getMapFromMaps(m,"main","tmpPath"); 1522 sprintf(tmp1,"%s",r_inputs->value); 1523 r_inputs=getMap(s1->content,"ServiceProvider"); 1524 sprintf(tmp1,"%s/%s",strdup(tmp1),r_inputs->value); 1525 sprintf(tmp1,"%s_%d_error.log",strdup(tmp1),cpid); 1526 freopen(tmp1,"w+",stderr); 1527 1527 /** 1528 1528 * set status to SERVICE_STARTED and flush stdout to ensure full … … 1638 1638 */ 1639 1639 eres=execute(&m,&request_input_real_format,&request_output_real_format); 1640 //dlclose(so);1640 dlclose(so); 1641 1641 } 1642 1642 } else { 1643 //#ifdef DEBUG1644 1643 /** 1645 * Should fallback to others languages. 1646 * Maybe beter to keep this informations anywhere 1647 * (in the service metadata ?) 1644 * Unable to load the requested C Library 1648 1645 */ 1649 1646 char tmps2[1024]; … … 1711 1708 #endif 1712 1709 1713 //dlclose(so);1714 1710 return 0; 1715 1711 }
Note: See TracChangeset
for help on using the changeset viewer.