Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 98 22:26:59 +0200
From:      Ben Stuyts <benst@terminus.stuyts.nl>
To:        current@FreeBSD.ORG, brian@awfulhak.org
Subject:   ppp -background sets wrong pid in /var/run/tun0.pid
Message-ID:  <199805302027.WAA09104@daneel.stuyts.nl>

next in thread | raw e-mail | index | archive | help
Hi,

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

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?199805302027.WAA09104>