Date: 12 Mar 2003 18:16:14 -0000 From: Luca Morettoni <luca@morettoni.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Brian Somers <brian@Awfulhak.org> Subject: bin/49965: Print ppp pid number Message-ID: <20030312181614.555.qmail@morettoni.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030312181614.555.qmail>
