Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Make sure the backoffice has all file descriptors closed before it starts. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
15f85cfdaaf9918e3df60f8b15b56f97 |
User & Date: | drh 2018-08-08 14:08:30 |
Context
2018-08-08
| ||
14:23 | Add the /test-backoffice-lease web page. check-in: 4a544e5d user: drh tags: trunk | |
14:08 | Make sure the backoffice has all file descriptors closed before it starts. check-in: 15f85cfd user: drh tags: trunk | |
13:47 | Add table sorting to the subscriber list. check-in: 988cf44d user: drh tags: trunk | |
Changes
Changes to src/backoffice.c.
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
backofficeTrace( "/***** Subprocess %d creates backoffice child %d *****/\n", GETPID(), (int)pid); return; } if( pid==0 ){ /* This is the child of a successful fork(). Run backoffice. */ setsid(); db_open_repository(backofficeDb); backofficeDb = "x"; backoffice_thread(); db_close(1); backofficeTrace("/***** Backoffice Child %d exits *****/\n", GETPID()); exit(0); } |
> > |
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 |
backofficeTrace( "/***** Subprocess %d creates backoffice child %d *****/\n", GETPID(), (int)pid); return; } if( pid==0 ){ /* This is the child of a successful fork(). Run backoffice. */ int i; setsid(); for(i=3; close(i)==0 || i<10; i++){} db_open_repository(backofficeDb); backofficeDb = "x"; backoffice_thread(); db_close(1); backofficeTrace("/***** Backoffice Child %d exits *****/\n", GETPID()); exit(0); } |