Changeset 790 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Dec 19, 2016, 6:01:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r789 r790 770 770 771 771 map *tmpReq = getMap (request_inputs, "xrequest"); 772 772 773 773 if(r_inputs2 != NULL && tmpReq != NULL) { 774 774 const char key[] = "rfile="; … … 922 922 if (m == NULL) 923 923 { 924 return errorException ( m, _("Unable to allocate memory"),924 return errorException (NULL, _("Unable to allocate memory"), 925 925 "InternalError", NULL); 926 926 } 927 m->child=NULL; 927 928 char ntmp[1024]; 928 929 #ifndef ETC_DIR … … 1537 1538 NULL); 1538 1539 } 1539 #ifdef DEBUG 1540 printf1541 ( "#################\n(%s) %s\n#################\n",1540 #ifdef DEBUG_SERVICE_CONF 1541 fprintf 1542 (stderr,"#################\n(%s) %s\n#################\n", 1542 1543 r_inputs->value, buff1); 1543 1544 #endif … … 1703 1704 map *postRequest = NULL; 1704 1705 postRequest = getMap (request_inputs, "xrequest"); 1705 1706 1706 1707 if(vid==1 && postRequest==NULL){ 1707 1708 errorException (m,_("Unable to run Execute request using the GET HTTP method"),"InvalidParameterValue", "request"); … … 1817 1818 maps *tmpmaps = request_input_real_format; 1818 1819 1819 1820 1820 if(parseRequest(&m,&request_inputs,s1,&request_input_real_format,&request_output_real_format,&hInternet)<0){ 1821 1821 freeMaps (&m); … … 1828 1828 return 0; 1829 1829 } 1830 1831 1830 1832 1831 // Define each env variable in runing environment … … 1989 1988 * 1990 1989 */ 1991 maps *_tmpMaps = (maps *) malloc (MAPS_SIZE); 1992 _tmpMaps->name = zStrdup ("lenv"); 1990 maps *_tmpMaps = createMaps("lenv"); 1993 1991 char tmpBuff[100]; 1994 1992 struct ztimeval tp; … … 1998 1996 sprintf (tmpBuff, "%i", (cpid + (int) time (NULL))); 1999 1997 _tmpMaps->content = createMap ("osid", tmpBuff); 2000 _tmpMaps->next = NULL;2001 1998 sprintf (tmpBuff, "%i", cpid); 2002 1999 addToMap (_tmpMaps->content, "sid", tmpBuff); … … 2081 2078 free (tcook); 2082 2079 maps *tmpSess = (maps *) malloc (MAPS_SIZE); 2080 tmpSess->child=NULL; 2083 2081 struct stat file_status; 2084 2082 int istat = stat (session_file_path, &file_status); … … 2106 2104 *environ; 2107 2105 #endif 2108 _tmpMaps = (maps *) malloc (MAPS_SIZE); 2109 _tmpMaps->name = zStrdup ("renv"); 2110 _tmpMaps->content = NULL; 2111 _tmpMaps->next = NULL; 2106 _tmpMaps = createMaps("renv"); 2112 2107 for (; s; ei++) { 2113 2108 char* tmpName=zStrdup(s); … … 2229 2224 strlen (usid->value) + 7) * sizeof (char)); 2230 2225 sprintf (fbkpres, "%s/%s.res", r_inputs->value, usid->value); 2231 bmap = (maps *) malloc (MAPS_SIZE); 2232 bmap->name=zStrdup("status"); 2226 bmap = createMaps("status"); 2233 2227 bmap->content=createMap("usid",usid->value); 2234 bmap->next=NULL;2235 2228 addToMap(bmap->content,"sid",tmpm->value); 2236 2229 addIntToMap(bmap->content,"pid",getpid());
Note: See TracChangeset
for help on using the changeset viewer.