Fossil SCM

At the end of CGI processing, close the output pipe before starting backoffice processing, in order to let higher levels know that the CGI is finished.

drh 2018-07-19 15:58 trunk
Commit a32a92d227be56631b204ef761e05121bfb3d08de16f84dc7a3adee1775fc49c
1 file changed +2
+2
--- src/cgi.c
+++ src/cgi.c
@@ -344,10 +344,12 @@
344344
345345
/* After the webpage has been sent, do any useful background
346346
** processing.
347347
*/
348348
if( g.db!=0 && iReplyStatus==200 ){
349
+ fclose(g.httpOut);
350
+ g.httpOut = fossil_fopen("/dev/null", "wb");
349351
backoffice_run();
350352
}
351353
}
352354
353355
/*
354356
--- src/cgi.c
+++ src/cgi.c
@@ -344,10 +344,12 @@
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 if( g.db!=0 && iReplyStatus==200 ){
 
 
349 backoffice_run();
350 }
351 }
352
353 /*
354
--- src/cgi.c
+++ src/cgi.c
@@ -344,10 +344,12 @@
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 if( g.db!=0 && iReplyStatus==200 ){
349 fclose(g.httpOut);
350 g.httpOut = fossil_fopen("/dev/null", "wb");
351 backoffice_run();
352 }
353 }
354
355 /*
356

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button