From nobody  Tue Aug 12 14:49:04 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id OAA23284;
          Tue, 12 Aug 1997 14:49:04 -0700 (PDT)
Message-Id: <199708122149.OAA23284@hub.freebsd.org>
Date: Tue, 12 Aug 1997 14:49:04 -0700 (PDT)
From: staylor@cancercare.net
To: freebsd-gnats-submit@freebsd.org
Subject: PPP and PPPD do not stay up after shell exits
X-Send-Pr-Version: www-1.0

>Number:         4288
>Category:       bin
>Synopsis:       PPP and PPPD do not stay up after shell exits
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 12 14:50:01 PDT 1997
>Closed-Date:    Sat Oct 18 17:03:21 PDT 1997
>Last-Modified:  Fri Jan 23 07:10:02 PST 1998
>Originator:     Steve Taylor
>Release:        2.2.2-RELEASE
>Organization:
Cancer Care Network, Inc.
>Environment:
System is currently down.
>Description:
When trying to dial into ISP using PPP or PPPD in either FreeBSD version
2.2.2 or 2.1.7, I am unable to stay connected past when I exit the shell
(csh).  Once the shell exits, the modem disconnects.  I have tried the
AT&D0 command, to no avail.  I do no have this problem in Free BSD version
2.1.5 with the exact same system.  I was running this system on 2.1.5
until I decided to upgrade to 2.2.2.  When 2.2.2 gave me these problems,
I tried 2.1.7 and 2.1.7.1.

I did notice that there are differences with the pppd source code, in
particular that the newer source code uses the "daemon" function to
deattach from the terminal, whereas the old "main.c" uses "fork".

I have a USR 33.6 internal modem on /dev/cuaa1
>How-To-Repeat:
Just try connecting with PPP, PPPD, or SLATTACH!
>Fix:
Move back to 2.1.5.  After doing this, I upgraded the KERNEL only (using
CVSUP) to 2.1.7 and there was still no problem.  I needed the built-in
vx0 suppport in 2.1.7.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Mon Sep 8 14:02:57 PDT 1997 
Responsible-Changed-Why:  
Ppp[d]'s mine. 
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Sat Oct 18 17:03:21 PDT 1997 
State-Changed-Why:  
This cannot be re-produced without the help of the original 
submitter.  It works ok on my bench. 

From: Brian Somers <brian@Awfulhak.org>
To: staylor@cancercare.net
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/4288: PPP and PPPD do not stay up after shell exits 
Date: Fri, 23 Jan 1998 15:03:32 +0000

 > 
 > >Number:         4288
 > >Category:       bin
 > >Synopsis:       PPP and PPPD do not stay up after shell exits
 [.....]
 > >Description:
 > When trying to dial into ISP using PPP or PPPD in either FreeBSD version
 > 2.2.2 or 2.1.7, I am unable to stay connected past when I exit the shell
 > (csh).  Once the shell exits, the modem disconnects.  I have tried the
 > AT&D0 command, to no avail.  I do no have this problem in Free BSD version
 > 2.1.5 with the exact same system.  I was running this system on 2.1.5
 > until I decided to upgrade to 2.2.2.  When 2.2.2 gave me these problems,
 > I tried 2.1.7 and 2.1.7.1.
 [.....]
 
 Can you confirm how you're running these programs ?  Are you saying 
 that you're running the programs, letting them go into the background 
 (by themselves) and then typing exit to your shell ?
 
 If this is the case, are you leaving a reasonable amount of time 
 between starting the daemon and exiting ?  They'll need time to go 
 into daemon mode.
 
 Cheers.
 
 -- 
 Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
       <http://www.Awfulhak.org>
 Don't _EVER_ lose your sense of humour....
 
 
>Unformatted:

How exactly are you running ppp[d] ?  If you're doing something like
"ppp -auto isp; exit", then the problem will arrise because the program
can't daemonize itself quick enough.  This can be addressed with a small
pause before exiting.
