home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / contrib / ninit / ns_main.c.patch < prev    next >
Text File  |  1991-05-13  |  980b  |  47 lines

  1. RCS file: RCS/ns_main.c,v
  2. retrieving revision 1.1
  3. retrieving revision 1.2
  4. diff -c -r1.1 -r1.2
  5. *** /tmp/,RCSt1014490    Mon May 13 16:35:41 1991
  6. --- /tmp/,RCSt2014490    Mon May 13 16:35:42 1991
  7. ***************
  8. *** 182,187 ****
  9. --- 182,188 ----
  10.       extern struct qstream *sqadd();
  11.       extern struct qinfo *qhead; 
  12.       extern char Version[];
  13. +     int    nofork = 0;
  14.   
  15.       ns_port = htons(NAMESERVER_PORT);
  16.   
  17. ***************
  18. *** 224,229 ****
  19. --- 225,234 ----
  20.                       setdebug(1);
  21.                       break;
  22.   
  23. +                 case 'n':
  24. +                     nofork++;
  25. +                     break;
  26.                   case 'p':
  27.                       if (--argc <= 0)
  28.                           usage();
  29. ***************
  30. *** 352,358 ****
  31.        * we've done any slow initialization
  32.        * and are ready to answer queries.
  33.        */
  34. !     if (!debug) {
  35.   #if defined(BSD) && BSD >= 199006
  36.           daemon(1, 0);
  37.   #else
  38. --- 357,363 ----
  39.        * we've done any slow initialization
  40.        * and are ready to answer queries.
  41.        */
  42. !     if (!debug && !nofork) {
  43.   #if defined(BSD) && BSD >= 199006
  44.           daemon(1, 0);
  45.   #else
  46.