Fossil

Check-in [458ced35]
Login

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

Overview
Comment:Make sure the backoffice does not try to reuse file descriptors that it has previously closed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 458ced35354314b1361df4dd627bb1ae7b26352edb110eb613e478fe684f309c
User & Date: drh 2019-07-11 12:19:29
Context
2019-07-11
13:10
Minor change to the "aboutdownload" document. check-in: fd8d37e2 user: drh tags: trunk
12:19
Make sure the backoffice does not try to reuse file descriptors that it has previously closed. check-in: 458ced35 user: drh tags: trunk
2019-07-10
22:19
Add a reference to the idea of a "Conflict-Free Replicated Datatypes" to the sync documentation. check-in: 2b3569d1 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/backoffice.c.

677
678
679
680
681
682
683



684
685
686
687
688
689
690
      int i;
      setsid();
      for(i=0; i<=2; i++){
        close(i);
        open("/dev/null", O_RDWR);
      }
      for(i=3; i<100; i++){ close(i); }



      db_open_repository(backofficeDb);
      backofficeDb = "x";
      backoffice_thread();
      db_close(1);
      backofficeTrace("/***** Backoffice Child %d exits *****/\n", GETPID());
      exit(0);
    }







>
>
>







677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
      int i;
      setsid();
      for(i=0; i<=2; i++){
        close(i);
        open("/dev/null", O_RDWR);
      }
      for(i=3; i<100; i++){ close(i); }
      g.fDebug = 0;
      g.httpIn = 0;
      g.httpOut = 0;
      db_open_repository(backofficeDb);
      backofficeDb = "x";
      backoffice_thread();
      db_close(1);
      backofficeTrace("/***** Backoffice Child %d exits *****/\n", GETPID());
      exit(0);
    }