Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site proper.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!ihnp4!zehntel!dual!proper!geoff From: geoff@proper.UUCP (Geoff Kuenning) Newsgroups: net.unix Subject: Re: inittab entries Message-ID: <984@proper.UUCP> Date: Tue, 7-Feb-84 05:23:59 EST Article-I.D.: proper.984 Posted: Tue Feb 7 05:23:59 1984 Date-Received: Fri, 10-Feb-84 02:25:06 EST References: <287@denelcor.UUCP>, <4916@umcp-cs.UUCP> Organization: Proper UNIX, San Leandro, CA Lines: 17 The general problem of making stty settings last past a close is insoluble in standard Unix because the TTY drivers set up the default terminal characteristics on the first open. This seems undesirable to me because many people want to set up serial printers, etc. In the Unix System V shipped by Callan Data Systems (my employer), I have take the liberty of solving this by making the following nonstandard kernel modification: When a TTY is closed, the baud rate and terminal characteristics are not modified unless "hangup-on-close" (stty "hupcl" option) is set, in which case the baud rate is set to zero. When a TTY is opened, the terminal characteristics and baud rate are initialized *ONLY* if the baud rate was previously zero. This allows TTY settings to be preserved by the simple expedient of including "-hupcl" in the stty command. If you want TTY settings to default to the system standard, you simply set "hupcl". Simple and, as far as I can tell, non-dangerous.