From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 11:15:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 103A216A4CE for ; Wed, 3 Nov 2004 11:15:36 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A2143D3F for ; Wed, 3 Nov 2004 11:15:35 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iA3BFYQF016111; Wed, 3 Nov 2004 12:15:34 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Andrey Chernov From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 03 Nov 2004 14:11:57 +0300." <20041103111157.GA12950@nagual.pp.ru> Date: Wed, 03 Nov 2004 12:15:34 +0100 Message-ID: <16110.1099480534@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@freebsd.org Subject: Re: Recent TTYDEF_LFLAG default change X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 11:15:36 -0000 In message <20041103111157.GA12950@nagual.pp.ru>, Andrey Chernov writes: >TTYDEF_LFLAG have ECHO* in it for years, and it is user-visible, some >programs may use it (see recent stty/key.c hacking). > >Why it was needed to remove ECHO* from here just to make yet one >non-standard, non cross-BSD compatible and unknown TTYDEF_LFLAG_ECHO? 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. -- 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.