Changeset 682 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Jun 26, 2015, 2:07:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r680 r682 734 734 strncpy(kvp, key, strlen(key)); 735 735 addToCache(m, tmpReq->value, tmpReq->value, "text/xml", strlen(tmpReq->value), 736 filepath, FILENAME_MAX); 736 filepath, FILENAME_MAX); 737 737 if (filepath == NULL) { 738 738 errorException( m, _("Unable to cache HTTP POST Execute request."), "InternalError", NULL); … … 787 787 SetEnvironmentVariable ("CGISID", TEXT (sid->value)); 788 788 SetEnvironmentVariable ("QUERY_STRING", TEXT (tmpq)); 789 // knut: Prevent REQUEST_METHOD=POST in background process call to cgic:main (process hangs when reading cgiIn): 789 // knut: Prevent REQUEST_METHOD=POST in background process call to cgic:main 790 // (process hangs when reading cgiIn): 790 791 SetEnvironmentVariable("REQUEST_METHOD", "GET"); 792 SetEnvironmentVariable("CONTENT_TYPE", "text/plain"); 791 793 792 794 char clen[1000]; … … 794 796 SetEnvironmentVariable ("CONTENT_LENGTH", TEXT (clen)); 795 797 798 // ref. https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863%28v=vs.85%29.aspx 796 799 if (!CreateProcess (NULL, // No module name (use command line) 797 800 TEXT (tmp), // Command line … … 1798 1801 * Initialize the specific [lenv] section which contains runtime variables: 1799 1802 * 1800 * - usid : it is an unique identification number 1803 * - usid : it is an universally unique identifier 1804 * - osid : it is an idenfitication number 1801 1805 * - sid : it is the process idenfitication number (OS) 1802 * - uusid : it is an universally unique identifi cation number1806 * - uusid : it is an universally unique identifier 1803 1807 * - status : value between 0 and 100 to express the completude of 1804 1808 * the operations of the running service … … 1931 1935 map *test1 = getMap (request_inputs, "cgiSid"); 1932 1936 if (test1 != NULL){ 1933 cgiSid = test1->value;1934 1935 1936 setMapInMaps (m, "lenv", "sid", test1->value);1937 1938 1937 cgiSid = zStrdup(test1->value); 1938 addToMap (request_inputs, "storeExecuteResponse", "true"); 1939 addToMap (request_inputs, "status", "true"); 1940 setMapInMaps (m, "lenv", "osid", test1->value); 1941 status = getMap (request_inputs, "status"); 1942 } 1939 1943 test1 = getMap (request_inputs, "usid"); 1940 1944 if (test1 != NULL){ … … 2129 2133 &request_input_real_format, 2130 2134 &request_output_real_format, &eres); 2131 2132 2135 } 2133 2136 else … … 2182 2185 lockShm (lid); 2183 2186 #endif 2184 fclose(f0);2185 2187 FILE *f3 = fopen (fbkp, "wb+"); 2186 2188 free (fbkp); … … 2206 2208 } 2207 2209 #ifndef RELY_ON_DB 2208 dumpMapsToFile(bmap,fbkpres );2210 dumpMapsToFile(bmap,fbkpres,1); 2209 2211 removeShmLock (m, 1); 2210 2212 #else … … 2221 2223 free (fbkp1); 2222 2224 free (tmps1); 2225 if(cgiSid!=NULL) 2226 free(cgiSid); 2223 2227 } 2224 2228
Note: See TracChangeset
for help on using the changeset viewer.