From owner-freebsd-current Sat Jun 6 13:50:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA19228 for freebsd-current-outgoing; Sat, 6 Jun 1998 13:50:37 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA19220 for ; Sat, 6 Jun 1998 13:50:33 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id VAA02013; Sat, 6 Jun 1998 21:49:36 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199806062049.VAA02013@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: ben@stuyts.nl cc: current@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: ppp -background sets wrong pid in /var/run/tun0.pid In-reply-to: Your message of "Sat, 30 May 1998 22:26:59 +0200." <199805302027.WAA09104@daneel.stuyts.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 06 Jun 1998 21:49:35 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, This has just been fixed..... Thanks for the report. > I have just done a make world of -current, and I noticed the following > problem with the new ppp: > > [terminus.stuyts.nl var/run]16: ppp -background nlnet > Working in background mode > Using interface: tun0 > PPP enabled. > > [terminus.stuyts.nl var/run]17: ps -aguxww | grep ppp > benst 1389 0.0 1.5 1276 956 ?? Ss 10:24PM 0:00.05 ppp -background nlnet > > [terminus.stuyts.nl var/run]18: cat /var/run/tun0.pid > 1388 > > It seems the value in tun0.pid is one off. This is quite a problem in scripts > such as: > > /usr/sbin/ppp -background nlnet > /dev/console 2>&1 > ... > /bin/kill -TERM `cat /var/run/tun0.pid` > /dev/console > > Any ideas? > > Best regards, > Ben > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message