From owner-freebsd-bugs Wed Mar 12 10:20: 5 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3666637B404 for ; Wed, 12 Mar 2003 10:20:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F6A43FE0 for ; Wed, 12 Mar 2003 10:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2CIK1NS036237 for ; Wed, 12 Mar 2003 10:20:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2CIK1cH036236; Wed, 12 Mar 2003 10:20:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E562C37B404 for ; Wed, 12 Mar 2003 10:19:36 -0800 (PST) Received: from myvision.it (morettoni.net [213.213.67.165]) by mx1.FreeBSD.org (Postfix) with SMTP id 67D1E43FAF for ; Wed, 12 Mar 2003 10:19:34 -0800 (PST) (envelope-from luca@morettoni.net) Received: (qmail 97144 invoked by uid 85); 12 Mar 2003 18:19:30 -0000 Received: from unknown (HELO ) (151.27.160.26) by 0 with SMTP; 12 Mar 2003 18:19:28 -0000 Received: (qmail 556 invoked by uid 1001); 12 Mar 2003 18:16:14 -0000 Message-Id: <20030312181614.555.qmail@morettoni.net> Date: 12 Mar 2003 18:16:14 -0000 From: Luca Morettoni Reply-To: Luca Morettoni To: FreeBSD-gnats-submit@FreeBSD.org Cc: Brian Somers X-Send-Pr-Version: 3.113 Subject: bin/49965: Print ppp pid number Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 49965 >Category: bin >Synopsis: Print ppp pid number >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 10:20:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Luca Morettoni >Release: FreeBSD 4.8-RC i386 >Organization: Luca Morettoni >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 --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message