From brian@Awfulhak.org  Tue Mar 25 16:05:24 2003
Return-Path: <brian@Awfulhak.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 81FB637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 16:05:24 -0800 (PST)
Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 38DFC43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 16:05:23 -0800 (PST)
	(envelope-from brian@Awfulhak.org)
Received: from mail.lan.Awfulhak.org (brian@hak.Awfulhak.org [IPv6:2001:6f8:602:1::12])
	by Awfulhak.org (8.12.8/8.12.8) with SMTP id h2Q05HTj011856;
	Wed, 26 Mar 2003 00:05:17 GMT
	(envelope-from brian@Awfulhak.org)
Message-Id: <20030326000511.2dd51697.brian@Awfulhak.org>
Date: Wed, 26 Mar 2003 00:05:11 +0000
From: Brian Somers <brian@Awfulhak.org>
To: Luca Morettoni <luca@morettoni.net>
Cc: FreeBSD-gnats-submit@freebsd.org
In-Reply-To: <20030312181614.555.qmail@morettoni.net>
Subject: Re: Print ppp pid number
References: <20030312181614.555.qmail@morettoni.net>

>Number:         50304
>Category:       bin
>Synopsis:       Re: Print ppp pid number
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 25 16:10:05 PST 2003
>Closed-Date:    Thu Mar 27 00:37:03 PST 2003
>Last-Modified:  Thu Mar 27 00:37:03 PST 2003
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hmm, I'd suggest that if you care about the PID, you should have your
 shell put it in the background...
 
   ppp -foreground blah &
   echo PID is $!
 
 Will this work for you ?  If so, I'll close the bug.
 
 On 12 Mar 2003 18:16:14 -0000, Luca Morettoni wrote:
 > 
 > >Submitter-Id:	current-users
 > >Originator:	Luca Morettoni
 > >Organization:	Luca Morettoni
 > >Confidential:	no 
 > >Synopsis:	Print ppp pid number
 > >Severity:	non-critical
 > >Priority:	low
 > >Category:	bin
 > >Class:		change-request
 > >Release:	FreeBSD 4.8-RC i386
 > >Environment:
 > System: FreeBSD home.morettoni.net 4.8-RC FreeBSD 4.8-RC #0: Wed Mar 12 10:47:51 CET 2003 luca@home.morettoni.net:/usr/obj/usr/src/sys/HOME i386
 > 
 > 
 > 	
 > >Description:
 >         When you run ppp and he goes on background you must type
 > 	a ``ifconfig'' to know the pid of ppp daemon.
 > 	With this patch you can see the pid when the connection is
 > 	fire up, like this:
 > 
 > 	luca@home:~% ppp -background libero
 > 	Working in background mode
 > 	Using interface: tun0
 > 	PPP enabled (PID 227)
 > 
 > >How-To-Repeat:
 > 
 > >Fix:
 > 
 > 	Fix with the attached patch for main.c in /usr/src/usr.sbin/ppp
 > 
 > --- ppp_pid.patch begins here ---
 > --- usr.sbin/ppp/main.c	Thu Mar  6 14:11:51 2003
 > +++ usr.sbin/ppp/main.c.luca	Wed Mar 12 14:25:40 2003
 > @@ -463,7 +463,7 @@
 >                switch (c) {
 >                  case EX_NORMAL:
 >                    if (!sw.quiet) {
 > -	            prompt_Printf(prompt, "PPP enabled\n");
 > +	            prompt_Printf(prompt, "PPP enabled (PID %d)\n", bgpid);
 >  	            log_Printf(LogPHASE, "Parent: PPP enabled\n");
 >                    }
 >  	          break;
 > --- ppp_pid.patch ends here ---
 > 
 > 
 > 
 
 
 -- 
 Brian <brian@Awfulhak.org>                       <brian.somers@sun.com>
       <http://www.Awfulhak.org>                <brian@[uk.]FreeBSD.org>
 Don't _EVER_ lose your sense of humour !       <brian@[uk.]OpenBSD.org>
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Thu Mar 27 00:36:13 PST 2003 
State-Changed-Why:  
Followup to bin/49965, misfiled as a new PR. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Thu Mar 27 00:36:13 PST 2003 
Responsible-Changed-Why:  

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