From adam@veda.is  Mon Jul  7 18:13:23 1997
Received: from veda.is (veda.is [193.4.230.1])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA19661
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 7 Jul 1997 18:13:18 -0700 (PDT)
Received: from ubiq.veda.is (ubiq.veda.is [193.4.230.60])
	by veda.is (8.8.5/8.8.5) with ESMTP id BAA21024
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Jul 1997 01:13:14 GMT
Received: (from adam@localhost)
	by ubiq.veda.is (8.8.5/8.8.5) id BAA03939;
	Tue, 8 Jul 1997 01:13:12 GMT
Message-Id: <199707080113.BAA03939@ubiq.veda.is>
Date: Tue, 8 Jul 1997 01:13:12 GMT
From: Adam David <adam@veda.is>
Reply-To: adam@veda.is
To: FreeBSD-gnats-submit@freebsd.org
Subject: pppd connect 'chat ...' broken
X-Send-Pr-Version: 3.2

>Number:         4051
>Category:       kern
>Synopsis:       pppd connect 'chat ...' broken
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul  7 18:20:01 PDT 1997
>Closed-Date:    Sat Sep 8 01:35:40 PDT 2001
>Last-Modified:  Sat Sep 08 01:35:48 PDT 2001
>Originator:     Adam David
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Veda Internet
>Environment:

	-current or 2.2

>Description:

	pppd(8) doesn't pass a valid terminal to chat(1) so the connect script
        fails with ENODEV ('man ioctl' does not mention this as a possible
        error either). The sequence is this:

        pppd: open the tty device
        pppd: TCGETA the open tty to store previous state before continuing
        pppd: set the tty state according to options
        pppd: fork and continue in the child
        pppd: dup2 to associate the opened tty with stdin/stdout
        pppd: exec a shell to run the script
        (/bin/sh is assumed to work correctly)
        chat: TCGETA stdin to store previous state before continuing,
              oops ENODEV (huh????)

        Theoretically this should work, but it fails.

>How-To-Repeat:

	try to get pppd to chat to the modem using chat(1) in a connect script.
	This is documented to be the correct approach, but it doesn't work.

>Fix:
	
	It looks like people have been using chat or cu,tip,kermit or whatever
        (getty?) to talk to the modem and hold open the port before invoking
        pppd.

        It's really ugly but reputed to work.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: dd 
State-Changed-When: Sat Jun 9 16:15:22 PDT 2001 
State-Changed-Why:  
Is this still a problem with recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4051 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Sep 8 01:35:40 PDT 2001 
State-Changed-Why:  
Feedback timeout 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=4051 
>Unformatted:
