egray@killer.DALLAS.TX.US (Emmet Gray) (09/14/88)
Gee... and I thought I had found all the bugs! Fat chance, eh? This patch will fix the bug where the DTR is not always asserted on the port during the opening sequences. Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057 ---------------------------------------------------------------------------- *** old/info.c Tue Sep 13 11:26:23 1988 --- info.c Tue Sep 13 11:26:54 1988 *************** *** 5,9 #define VERSION "1.1" ! #define DATE "21 Aug 88" #include <stdio.h> --- 5,9 ----- #define VERSION "1.1" ! #define DATE "13 Sep 88" #include <stdio.h> *** old/main.c Sun Aug 21 16:45:08 1988 --- main.c Tue Sep 13 09:41:13 1988 *************** *** 17,20 * patch #5 25 May 88 * Release v1.1 21 Aug 88 */ --- 17,21 ----- * patch #5 25 May 88 * Release v1.1 21 Aug 88 + * patch #1 13 Sep 88 */ *** old/port.c Mon Aug 8 08:50:05 1988 --- port.c Tue Sep 13 11:38:34 1988 *************** *** 16,20 #include "modem.h" ! static int getty_status; static char *lock_path = NULL; /* --- 16,20 ----- #include "modem.h" ! static int getty_status = 0; static char *lock_path = NULL; /* *************** *** 144,149 error_win(1, file, ""); } - /* turn off the "no delay" mode */ - fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); /* change line settings */ line_set(); --- 144,147 ----- error_win(1, file, ""); } /* change line settings */ line_set(); *************** *** 148,151 /* change line settings */ line_set(); /* load the modem data base */ modem->m_cur = -1; --- 146,151 ----- /* change line settings */ line_set(); + /* turn off the "no delay" mode */ + fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); /* load the modem data base */ modem->m_cur = -1; *************** *** 362,366 } #ifdef DEBUG ! fprintf(stderr, "ck_speed: checking modem '%s' for %d buad\n", modem->mname[mod], baud); #endif /* DEBUG */ --- 362,366 ----- } #ifdef DEBUG ! fprintf(stderr, "ck_speed: checking modem '%s' for %d baud\n", modem->mname[mod], baud); #endif /* DEBUG */ *** old/terminal.c Sun Aug 21 09:43:05 1988 --- terminal.c Tue Sep 13 09:06:14 1988 *************** *** 429,433 close(fd); fd = open(buf, O_RDWR|O_NDELAY); - fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); line_set(); } --- 429,432 ----- close(fd); fd = open(buf, O_RDWR|O_NDELAY); line_set(); fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); *************** *** 431,434 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); line_set(); } else --- 430,434 ----- fd = open(buf, O_RDWR|O_NDELAY); line_set(); + fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NDELAY); } else