Changeset 483 for trunk/zoo-project
- Timestamp:
- May 30, 2014, 12:14:04 PM (11 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r481 r483 382 382 int zooXmlAddNs(xmlNodePtr nr,const char* url,const char* name){ 383 383 #ifdef DEBUG 384 fprintf(stderr,"zooXmlAddNs %d \n",nbNs);384 fprintf(stderr,"zooXmlAddNs %d %s \n",nbNs,name); 385 385 #endif 386 386 int currId=-1; … … 2028 2028 xmlNodePtr n; 2029 2029 2030 zooXmlCleanupNs(); 2030 2031 doc = xmlNewDoc(BAD_CAST "1.0"); 2031 2032 maps* tmpMap=getMaps(m,"main"); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r481 r483 198 198 return 1; 199 199 DIR *dirp = opendir(conf_dir); 200 if(dirp==NULL){ 201 dup2(saved_stdout,fileno(stdout)); 202 errorException(m, _("The specified path doesn't exist."),"InvalidParameterValue","metapath"); 203 return -1; 200 if(dirp==NULL){ 201 if(level>0) 202 return 1; 203 else 204 return -1; 204 205 } 205 206 char tmp1[25]; … … 888 889 int saved_stdout = dup(fileno(stdout)); 889 890 dup2(fileno(stderr),fileno(stdout)); 890 if(int res=recursReaddirF(m,n,conf_dir,NULL,saved_stdout,0,printGetCapabilitiesForProcess)<0) 891 if(int res=recursReaddirF(m,n,conf_dir,NULL,saved_stdout,0,printGetCapabilitiesForProcess)<0){ 892 freeMaps(&m); 893 free(m); 894 free(REQUEST); 895 free(SERVICE_URL); 896 fflush(stdout); 891 897 return res; 898 } 892 899 dup2(saved_stdout,fileno(stdout)); 893 900 printDocument(m,doc,getpid()); … … 2503 2510 * this way the data will be updated at the end of the process run. 2504 2511 */ 2505 printProcessResponse(m,request_inputs,cpid, 2506 s1,r_inputs1->value,SERVICE_STARTED, 2507 request_input_real_format, 2508 request_output_real_format); 2512 printProcessResponse(m,request_inputs,cpid,s1,r_inputs1->value,SERVICE_STARTED, 2513 request_input_real_format,request_output_real_format); 2509 2514 #ifndef WIN32 2510 2515 fflush(stdout);
Note: See TracChangeset
for help on using the changeset viewer.