Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 2004 12:20:32 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Andrey Chernov <ache@nagual.pp.ru>
Cc:        current@freebsd.org
Subject:   Re: Recent TTYDEF_LFLAG default change 
Message-ID:  <16246.1099480832@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 03 Nov 2004 14:18:13 %2B0300." <20041103111813.GB13047@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20041103111813.GB13047@nagual.pp.ru>, Andrey Chernov writes:
>On Wed, Nov 03, 2004 at 12:15:34PM +0100, Poul-Henning Kamp wrote:
>> Because if you open a serial port and it defaults to echo, you may end up in
>> an "echo-war" with the other end before you ever get a chance to call
>> ioctl and disable echoing.
>
>Well, use TTYDEF_LFLAG_NOECHO I suggest for that case and leave 
>user-visible default untouched to not break userland programs.

How many pieces of software know about TTYDEF_* outside our sourcecode ?

Most of it would be bogus I think, software should record the current
state and restore that, not mangle it with defaults.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16246.1099480832>