Fossil

Diff
Login

Diff

Differences From Artifact [596b68e93c]:

To Artifact [6fde37353b]:


642
643
644
645
646
647
648

649

650
651
652
653
654
655
656
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);
    }