From owner-freebsd-hackers Tue Feb 7 05:00:39 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id FAA24655 for hackers-outgoing; Tue, 7 Feb 1995 05:00:39 -0800 Received: from wcarchive.cdrom.com (wcarchive.cdrom.com [192.216.191.11]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id FAA24649 for ; Tue, 7 Feb 1995 05:00:37 -0800 Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by wcarchive.cdrom.com (8.6.8/8.6.6) with SMTP id FAA27750 for ; Tue, 7 Feb 1995 05:00:28 -0800 Received: by dg-rtp.dg.com (5.4R2.01/dg-rtp-v02) id AA14331; Tue, 7 Feb 1995 07:59:54 -0500 Received: (rivers@localhost) by ponds.UUCP (8.6.9/8.6.5) id IAA19622; Sat, 4 Feb 1995 08:53:45 -0500 Date: Sat, 4 Feb 1995 08:53:45 -0500 From: Thomas David Rivers Message-Id: <199502041353.IAA19622@ponds.UUCP> To: peter@bonkers.taronga.com, rivers@dg-rtp.dg.com Subject: Re: chat(8) improvements for SL/IP dialout. Cc: freebsd-hackers@wcarchive.cdrom.com, longyear@netcom.com Sender: hackers-owner@FreeBSD.org Precedence: bulk > > Looks nifty. One point: > > > t.c_lflag = 0; > > + if(command) { > > + /* If we're going to execute a command, don't hang-up */ > > + /* the device when we're done. */ > > + t.c_cflag &= ~HUPCL; > > + } > > t.c_cc[VERASE] = t.c_cc[VKILL] = 0; > > Why not? Oh, for SLIP or PPP where the command just establishes a connection > that's useful, but for a situation where you're running some conventional > command (like, say, a dialback security mechanism) you want to retain HUPCL. > > I'd say make this a separate option, or even better have an optional set of > stty arguments to apply to the port (including baud rate, which you can pre- > parse to set up before calling stty and the command). That's a very good idea! > > (pppd is already set up to call chat itself. I'm sorta surprised slip doesn't > do that...) > > - Dave Rivers -