- Timestamp:
- Feb 25, 2019, 1:57:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/zoo_service_loader.c
r893 r896 229 229 fread (tmps1, flen, 1, f2); 230 230 #ifdef WIN32 231 /* knut: I think this block can be dropped; pchr may be NULL if result is not in XML format 231 232 char *pchr=strrchr(tmps1,'>'); 232 233 flen=strlen(tmps1)-strlen(pchr)+1; 233 234 tmps1[flen]=0; 235 */ 234 236 #endif 235 237 fwrite (tmps1, 1, flen, f3); … … 483 485 #endif 484 486 485 map* libp = getMapFromMaps(m, "main", "libPath"); 486 487 map* libp = getMapFromMaps(m, "main", "libPath"); 487 488 if (strlen (r_inputs->value) == 1 488 489 && strncasecmp (r_inputs->value, "C", 1) == 0) … … 707 708 #ifdef USE_PYTHON 708 709 if (strncasecmp (r_inputs->value, "PYTHON", 6) == 0) 709 { 710 { 710 711 *eres = 711 712 zoo_python_support (&m, request_inputs, s1, 712 713 &request_input_real_format, 713 &request_output_real_format); 714 &request_output_real_format); 714 715 } 715 716 else … … 798 799 } 799 800 *myMap = m; 800 *ioutputs = request_output_real_format; 801 *ioutputs = request_output_real_format; 801 802 } 802 803 … … 2359 2360 dumpMapsValuesToFiles(&m,&request_input_real_format); 2360 2361 loadServiceAndRun (&m, s1, request_inputs, &request_input_real_format, 2361 &request_output_real_format, &eres); 2362 &request_output_real_format, &eres); 2362 2363 2363 2364 #ifdef META_DB … … 2593 2594 } 2594 2595 } 2595 2596 2596 2597 #ifdef DEBUG 2597 2598 fprintf (stderr, "RUN IN BACKGROUND MODE %s %d \n",__FILE__,__LINE__); … … 2602 2603 rewind(stdout); 2603 2604 2604 //fprintf(stderr,"%s %d %d\n",__FILE__,__LINE__,eres); 2605 2605 //fprintf(stderr,"%s %d %d\n",__FILE__,__LINE__,eres); 2606 2606 if (eres != -1) 2607 2607 outputResponse (s1, request_input_real_format, … … 2609 2609 cpid, m, eres); 2610 2610 fflush (stdout); 2611 2611 2612 2612 /** 2613 2613 * Ensure that if error occurs when freeing memory, no signal will return
Note: See TracChangeset
for help on using the changeset viewer.