Changeset 788 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Oct 12, 2016, 3:47:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r784 r788 22 22 * THE SOFTWARE. 23 23 */ 24 24 25 25 extern "C" int yylex (); 26 26 extern "C" int crlex (); … … 104 104 extern char **environ; 105 105 #endif 106 106 107 107 108 #ifdef WIN32 … … 668 669 *eres = 669 670 zoo_php_support (&m, request_inputs, s1, &request_input_real_format, 670 &request_output_real_format); 671 &request_output_real_format); 671 672 } 672 673 else … … 890 891 runRequest (map ** inputs) 891 892 { 892 893 893 894 #ifndef USE_GDB 894 895 #ifndef WIN32 … … 940 941 #endif 941 942 #endif 943 942 944 if (conf_read (conf_file, m) == 2) 943 945 { … … 1621 1623 return 0; 1622 1624 } 1623 1624 1625 s1 = NULL; 1625 1626 s1 = (service *) malloc (SERVICE_SIZE); … … 1995 1996 dumpMap (request_inputs); 1996 1997 #endif 1997 1998 1998 int ei = 1; 1999 1999 char *s = … … 2046 2046 } 2047 2047 #endif 2048 2048 2049 char *fbkp, *fbkpid, *fbkpres, *fbkp1, *flog; 2049 2050 FILE *f0, *f1; … … 2068 2069 return -1; 2069 2070 } 2070 2071 2071 loadServiceAndRun (&m, s1, request_inputs, &request_input_real_format, 2072 2072 &request_output_real_format, &eres); … … 2124 2124 (char *) 2125 2125 malloc ((strlen (r_inputs->value) + 2126 strlen (usid->value) + 7) * sizeof (char)); 2126 strlen (usid->value) + 7) * sizeof (char)); 2127 2127 sprintf (fbkpres, "%s/%s.res", r_inputs->value, usid->value); 2128 2128 bmap = (maps *) malloc (MAPS_SIZE); … … 2258 2258 dumpMaps (request_output_real_format); 2259 2259 #endif 2260 2260 2261 if (eres != -1) 2261 2262 outputResponse (s1, request_input_real_format, … … 2263 2264 cpid, m, eres); 2264 2265 fflush (stdout); 2265 2266 2266 2267 /** 2267 2268 * Ensure that if error occurs when freeing memory, no signal will return … … 2277 2278 signal (SIGABRT, donothing); 2278 2279 #endif 2279 2280 2280 2281 if (((int) getpid ()) != cpid || cgiSid != NULL) 2281 2282 { … … 2288 2289 if(dumpBackFinalFile(m,fbkp,fbkp1)<0) 2289 2290 return -1; 2290 2291 2291 unlink (fbkpid); 2292 2292 switch(eres){ … … 2300 2300 setMapInMaps(m,"lenv","fstate",wpsStatus[0]); 2301 2301 break; 2302 } 2302 } 2303 2303 #ifndef RELY_ON_DB 2304 2304 dumpMapsToFile(bmap,fbkpres,1); … … 2313 2313 unhandleStatus (m); 2314 2314 free(fbkpid); 2315 free(fbkpres); 2316 free (flog); 2315 free(fbkpres); 2316 free (flog); 2317 2317 free (fbkp1); 2318 free (tmps1);2318 // free (tmps1); // tmps1 is stack memory and should not be freed 2319 2319 if(cgiSid!=NULL) 2320 2320 free(cgiSid);
Note: See TracChangeset
for help on using the changeset viewer.