From nobody@FreeBSD.org  Mon May  7 13:30:40 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 748CA16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 May 2007 13:30:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 6815B13C46E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 May 2007 13:30:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l47DUeZB080445
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 May 2007 13:30:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l47DPbxc066873;
	Mon, 7 May 2007 13:25:37 GMT
	(envelope-from nobody)
Message-Id: <200705071325.l47DPbxc066873@www.freebsd.org>
Date: Mon, 7 May 2007 13:25:37 GMT
From: JD Bronson<jd@aurora.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ppp.linkup example
X-Send-Pr-Version: www-3.0

>Number:         112481
>Category:       docs
>Synopsis:       bug in ppp.linkup example
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 07 13:40:00 GMT 2007
>Closed-Date:    Tue Jun 02 09:58:34 UTC 2009
>Last-Modified:  Tue Jun 02 09:58:34 UTC 2009
>Originator:     JD Bronson
>Release:        6.2
>Organization:
Aurora Health Care
>Environment:
6.2-STABLE FreeBSD 6.2-STABLE #0
>Description:
I am requesting to have the example ppp.linkup file changed to reflect
the following (in some sort of way):

It seems that until commands specified with "! sh -c" are completed, no
traffic is permitted under tun0.

Specifying "!bg sh -c" permits the process to be backgrounded and therefore
does not hold up tun0 traffic and allows programs running within ppp.linkup
to actually use tun0.

I discovered this when attempting to run 'nsupdate' to my DNS server to
notify it of my newly obtained IP.

If I run it as "! sh -c", nsupdate HANGS forever.
If I run it as "!bg sh -c", nsupdate performs the requested actions.

I think it would be very helpful to add something into the ppp.linkup
example files to indicate this.

-JD
>How-To-Repeat:
See above
>Fix:
Run commands with "!bg sh -c" 
instead of "! sh -c"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat May 26 06:30:05 UTC 2007 
Responsible-Changed-Why:  
Reclassify. 

To submitter: where is this example file found? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112481 

From: Tom Rhodes <trhodes@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/112481: bug in ppp.linkup example
Date: Tue, 22 Jan 2008 11:02:03 -0500

 Hi,
 
 For reference, the file seems to be: /usr/share/examples/ppp/ppp.linkup.sample
 
 -- 
 Tom Rhodes
Responsible-Changed-From-To: freebsd-doc->brian 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Jan 12 22:44:07 UTC 2009 
Responsible-Changed-Why:  
Brian Somers is the PPP guy IIRC, and hanging forever seems more 
like a possible software bug than a doc bug.  Brian, could you 
look at this please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112481 
State-Changed-From-To: open->patched 
State-Changed-By: brian 
State-Changed-When: Tue May 26 07:33:56 UTC 2009 
State-Changed-Why:  
I've mentioned the "danger" in r192799.  I'll MFC in 1 week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112481 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/112481: commit references a PR
Date: Tue, 26 May 2009 07:40:44 +0000 (UTC)

 Author: brian
 Date: Tue May 26 07:40:32 2009
 New Revision: 192799
 URL: http://svn.freebsd.org/changeset/base/192799
 
 Log:
   Mention the danger of running programs using ``!''.
   
   PR:		112481
   MFC after:	1 week
 
 Modified:
   head/share/examples/ppp/ppp.linkup.sample
 
 Modified: head/share/examples/ppp/ppp.linkup.sample
 ==============================================================================
 --- head/share/examples/ppp/ppp.linkup.sample	Tue May 26 07:32:08 2009	(r192798)
 +++ head/share/examples/ppp/ppp.linkup.sample	Tue May 26 07:40:32 2009	(r192799)
 @@ -30,11 +30,16 @@ MYADDR:
  192.244.176.32:
   add 192.244.176.0 0 HISADDR
  
 -#You may want to execute a script after connecting.  This script can do
 +# You may want to execute a script after connecting.  This script can do
  # nice things such as kick off "sendmail -q", "popclient my.isp" and
  # "slurp -d news".  It can be passed MYADDR, HISADDR and INTERFACE
  # as arguments too - useful for informing a DNS of your assigned IP.
  #
 +# NOTE: It's vital that you use ``!bg'' rather than ``!'' if the program
 +#       you're running will take some time or will require network
 +#       connectivity.  Using ``!'' will delay ppp 'till the completion
 +#       of the program being run!
 +#
  # You may also want some sound effects....
  #
  pmdemand:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/112481: commit references a PR
Date: Tue,  2 Jun 2009 09:26:12 +0000 (UTC)

 Author: brian
 Date: Tue Jun  2 09:25:56 2009
 New Revision: 193304
 URL: http://svn.freebsd.org/changeset/base/193304
 
 Log:
   MFC: Mention the danger of running programs using ``!''.
   
   PR:		112481
 
 Modified:
   stable/7/share/examples/   (props changed)
   stable/7/share/examples/ppp/ppp.linkup.sample
 
 Modified: stable/7/share/examples/ppp/ppp.linkup.sample
 ==============================================================================
 --- stable/7/share/examples/ppp/ppp.linkup.sample	Tue Jun  2 08:02:27 2009	(r193303)
 +++ stable/7/share/examples/ppp/ppp.linkup.sample	Tue Jun  2 09:25:56 2009	(r193304)
 @@ -30,11 +30,16 @@ MYADDR:
  192.244.176.32:
   add 192.244.176.0 0 HISADDR
  
 -#You may want to execute a script after connecting.  This script can do
 +# You may want to execute a script after connecting.  This script can do
  # nice things such as kick off "sendmail -q", "popclient my.isp" and
  # "slurp -d news".  It can be passed MYADDR, HISADDR and INTERFACE
  # as arguments too - useful for informing a DNS of your assigned IP.
  #
 +# NOTE: It's vital that you use ``!bg'' rather than ``!'' if the program
 +#       you're running will take some time or will require network
 +#       connectivity.  Using ``!'' will delay ppp 'till the completion
 +#       of the program being run!
 +#
  # You may also want some sound effects....
  #
  pmdemand:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: brian 
State-Changed-When: Tue Jun 2 09:58:06 UTC 2009 
State-Changed-Why:  
Merged to stable/7 - r193304 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112481 
>Unformatted:
