home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume14 / pcomm / patch1 / patch4 < prev   
Encoding:
Text File  |  1988-05-18  |  2.3 KB  |  103 lines

  1. This patch will allow Pcomm to
  2. ignore the DCD (Data Carrier Dectect) signal on the modem.  This will help
  3. out finicky modems (those that can't ignore the DCD themselves).
  4.  
  5. Also, some modems like to be initialized only once, so that change was made.
  6.  
  7. *** old/line_set.c    Thu Apr 14 07:51:59 1988
  8. --- line_set.c    Thu Apr 14 07:51:46 1988
  9. ***************
  10. *** 34,40
  11.       tbuf.c_cc[5] = 0;
  12.       tbuf.c_oflag = 0;
  13.       tbuf.c_iflag = 0;
  14. !     tbuf.c_cflag = (CREAD|HUPCL);
  15.       tbuf.c_lflag = 0;
  16.   
  17.       /*
  18.  
  19. --- 34,40 -----
  20.       tbuf.c_cc[5] = 0;
  21.       tbuf.c_oflag = 0;
  22.       tbuf.c_iflag = 0;
  23. !     tbuf.c_cflag = (CREAD|HUPCL|CLOCAL);
  24.       tbuf.c_lflag = 0;
  25.   
  26.       /*
  27. *** old/port.c    Thu Apr 14 07:51:59 1988
  28. --- port.c    Thu Apr 14 07:51:46 1988
  29. ***************
  30. *** 27,32
  31.   {
  32.       int i, j, k, progpid, fd, list[NUM_TTY];
  33.       char file[80], buf[80], message[80], *strdup();
  34.       void error_win(), line_set(), release_port(), send_str();
  35.       void free_ptr();
  36.       
  37.  
  38. --- 27,33 -----
  39.   {
  40.       int i, j, k, progpid, fd, list[NUM_TTY];
  41.       char file[80], buf[80], message[80], *strdup();
  42. +     unsigned int sleep();
  43.       void error_win(), line_set(), release_port(), send_str();
  44.       void free_ptr();
  45.       
  46. ***************
  47. *** 38,45
  48.           if (!strcmp(dir->index[dir->d_cur], modem->tty[modem->t_cur]) ||
  49.            modem->mbaud[modem->t_cur] >= dir->baud[dir->d_cur]) {
  50.               /*
  51. !              * Re-initialize the modem because the baud
  52. !              * rate (or other parameters) may have changed.
  53.                */
  54.               line_set();
  55.               send_str(modem->init[modem->m_cur]);
  56.  
  57. --- 39,46 -----
  58.           if (!strcmp(dir->index[dir->d_cur], modem->tty[modem->t_cur]) ||
  59.            modem->mbaud[modem->t_cur] >= dir->baud[dir->d_cur]) {
  60.               /*
  61. !              * Reset the line because the baud rate (or other
  62. !              * parameters) may have changed.
  63.                */
  64.               line_set();
  65.               return(0);
  66. ***************
  67. *** 42,48
  68.                * rate (or other parameters) may have changed.
  69.                */
  70.               line_set();
  71. -             send_str(modem->init[modem->m_cur]);
  72.               return(0);
  73.           }
  74.       }
  75.  
  76. --- 43,48 -----
  77.                * parameters) may have changed.
  78.                */
  79.               line_set();
  80.               return(0);
  81.           }
  82.       }
  83. ***************
  84. *** 145,150
  85.               }
  86.                       /* initialize the modem */
  87.               send_str(modem->init[j]);
  88.               return(0);
  89.           }
  90.           i++;
  91.  
  92. --- 145,151 -----
  93.               }
  94.                       /* initialize the modem */
  95.               send_str(modem->init[j]);
  96. +             sleep(1);
  97.               return(0);
  98.           }
  99.           i++;
  100.  
  101.  
  102.  
  103.