Date: Sat, 06 Jun 1998 21:49:35 +0100 From: Brian Somers <brian@Awfulhak.org> To: ben@stuyts.nl Cc: current@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: ppp -background sets wrong pid in /var/run/tun0.pid Message-ID: <199806062049.VAA02013@awfulhak.org> In-Reply-To: Your message of "Sat, 30 May 1998 22:26:59 %2B0200." <199805302027.WAA09104@daneel.stuyts.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806062049.VAA02013>
