Fossil

Check-in [a32a92d2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a32a92d227be56631b204ef761e05121bfb3d08de16f84dc7a3adee1775fc49c
User & Date: drh 2018-07-19 15:58:36
Context
2018-07-19
16:27
Improved SQL logging after SIGPIPE. Exponential backoff in the warnings issued when the backoffice process misses its deadline. check-in: f525b6d5 user: drh tags: trunk
15:58
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. check-in: a32a92d2 user: drh tags: trunk
15:52
Backoffice only runs for successful webpage that have the database open. Add "refresh" and "Show All" buttons on the /errorlog page. check-in: aa17077e user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cgi.c.

342
343
344
345
346
347
348


349
350
351
352
353
354
355
  fflush(g.httpOut);
  CGIDEBUG(("DONE\n"));

  /* After the webpage has been sent, do any useful background
  ** processing.
  */
  if( g.db!=0 && iReplyStatus==200 ){


    backoffice_run();
  }
}

/*
** Do a redirect request to the URL given in the argument.
**







>
>







342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
  fflush(g.httpOut);
  CGIDEBUG(("DONE\n"));

  /* After the webpage has been sent, do any useful background
  ** processing.
  */
  if( g.db!=0 && iReplyStatus==200 ){
    fclose(g.httpOut);
    g.httpOut = fossil_fopen("/dev/null", "wb");
    backoffice_run();
  }
}

/*
** Do a redirect request to the URL given in the argument.
**