TEMARI%ECAMV1.dnet.ge.com@vm1.nodak.edu (10/10/90)
Bruce didn't seem to like my previous fix (have to admit it was pretty bad) for term.c so here is another. crc before: 05401 8017 crc after: 39763 8249 Michael Temari temari@ecamv1.dnet.ge.com ----------------------------------------------------------------------------- 19a20,22 > * 09 Oct 90 MAT (Michael A. Temari): Fixed bug where terminal isn't reset > * if an error occurs. > * 129,130c132,135 < if (commdev != NULL) < error("Too many communication devices", ""); --- > if (commdev != NULL) { > write2sn("Too many communication devices", ""); > exit(1); > } 138,140c143,151 < if (argc > i) error("Usage: term [baudrate] [data_bits] [parity]", ""); < commfd = open(commdev, O_RDWR); < if (commfd < 0) error("Can't open ", commdev); --- > if (argc > i) { > write2sn("Usage: term [baudrate] [data_bits] [parity]", ""); > exit(1); > } > commfd = open(commdev, O_RDWR); > if (commfd < 0) { > write2sn("Can't open ", commdev); > exit(1); > } 285a297,298 > ioctl(commfd, TIOCSETP, &sgcommfd); > ioctl(0, TIOCSETP, &sgstdin);