Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site vaxine.UUCP Path: utzoo!linus!genrad!wjh12!vaxine!ptw From: ptw@vaxine.UUCP Newsgroups: net.unix-wizards Subject: Flushing and HUPCLS (4.1bsd) Message-ID: <212@vaxine.UUCP> Date: Fri, 10-Jun-83 14:47:47 EDT Article-I.D.: vaxine.212 Posted: Fri Jun 10 14:47:47 1983 Date-Received: Sat, 11-Jun-83 10:26:26 EDT Organization: Automatix Inc., Billerica, MA Lines: 23 My reading of my (4.1) dz/dh drivers says that a remote terminal with HUPCLS set and default line discipline could drop its last few characters, since the modem is turned off before it is flushed. The relevant lines are as follows: /*** dh.c circa line 295 ***/ (*linesw[tp->t_line].l_close)(tp); ((struct dhdevice *)(tp->t_addr))->dhbreak &= ~(1<<(unit&017)); if (tp->t_state&HUPCLS || (tp->t_state&ISOPEN)==0) dmctl(unit, DML_OFF, DMSET); ttyclose(tp); This is probably no big deal for a terminal session, but I suspect it might give something like UUCP gas. My real problem is that I'm trying to do the dialin/dialout dance and once in a yellow/white moon my uucico hangs in ttyclose, I think because a race condition is letting init turn DTR back on before CD drops. Switching the flushing and HUPCLS isn't the right solution to my problem, but the present arrangement does concern me. Any commments?