home *** CD-ROM | disk | FTP | other *** search
- This patch will allow Pcomm to
- ignore the DCD (Data Carrier Dectect) signal on the modem. This will help
- out finicky modems (those that can't ignore the DCD themselves).
-
- Also, some modems like to be initialized only once, so that change was made.
-
- *** old/line_set.c Thu Apr 14 07:51:59 1988
- --- line_set.c Thu Apr 14 07:51:46 1988
- ***************
- *** 34,40
- tbuf.c_cc[5] = 0;
- tbuf.c_oflag = 0;
- tbuf.c_iflag = 0;
- ! tbuf.c_cflag = (CREAD|HUPCL);
- tbuf.c_lflag = 0;
-
- /*
-
- --- 34,40 -----
- tbuf.c_cc[5] = 0;
- tbuf.c_oflag = 0;
- tbuf.c_iflag = 0;
- ! tbuf.c_cflag = (CREAD|HUPCL|CLOCAL);
- tbuf.c_lflag = 0;
-
- /*
- *** old/port.c Thu Apr 14 07:51:59 1988
- --- port.c Thu Apr 14 07:51:46 1988
- ***************
- *** 27,32
- {
- int i, j, k, progpid, fd, list[NUM_TTY];
- char file[80], buf[80], message[80], *strdup();
- void error_win(), line_set(), release_port(), send_str();
- void free_ptr();
-
-
- --- 27,33 -----
- {
- int i, j, k, progpid, fd, list[NUM_TTY];
- char file[80], buf[80], message[80], *strdup();
- + unsigned int sleep();
- void error_win(), line_set(), release_port(), send_str();
- void free_ptr();
-
- ***************
- *** 38,45
- if (!strcmp(dir->index[dir->d_cur], modem->tty[modem->t_cur]) ||
- modem->mbaud[modem->t_cur] >= dir->baud[dir->d_cur]) {
- /*
- ! * Re-initialize the modem because the baud
- ! * rate (or other parameters) may have changed.
- */
- line_set();
- send_str(modem->init[modem->m_cur]);
-
- --- 39,46 -----
- if (!strcmp(dir->index[dir->d_cur], modem->tty[modem->t_cur]) ||
- modem->mbaud[modem->t_cur] >= dir->baud[dir->d_cur]) {
- /*
- ! * Reset the line because the baud rate (or other
- ! * parameters) may have changed.
- */
- line_set();
- return(0);
- ***************
- *** 42,48
- * rate (or other parameters) may have changed.
- */
- line_set();
- - send_str(modem->init[modem->m_cur]);
- return(0);
- }
- }
-
- --- 43,48 -----
- * parameters) may have changed.
- */
- line_set();
- return(0);
- }
- }
- ***************
- *** 145,150
- }
- /* initialize the modem */
- send_str(modem->init[j]);
- return(0);
- }
- i++;
-
- --- 145,151 -----
- }
- /* initialize the modem */
- send_str(modem->init[j]);
- + sleep(1);
- return(0);
- }
- i++;
-
-
-
-