*BSD News Article 81614


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news-peer.gsl.net!news.gsl.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PPPD - minor problems
Date: 27 Oct 1996 20:43:12 GMT
Organization: Private BSD site, Dresden
Lines: 32
Message-ID: <550hh0$eus@uriah.heep.sax.de>
References: <54q9n4$gir@pandora.vision.net.au>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

mvanloon@vision.net.au (Mark van Loon) wrote:

> Everything works OK during a session, until the user hangs up their
> line. Then the following errors are logged to /var/log/messages
> 
> --------------------------------------------
> Oct 25 16:57:48 basil pppd[411]: pppd 2.1.2 started by vanloonm, uid
> 10000
> Oct 25 16:57:48 basil pppd[411]: Connect: ppp0 <--> /dev/ttyd00
> Oct 25 16:57:52 basil pppd[411]: local  IP address 147.109.194.288
> Oct 25 16:57:52 basil pppd[411]: remote IP address 147.109.194.299
> Oct 25 16:59:59 basil pppd[411]: ioctl (PPPIOCGFLAGS): Inappropriate
> ioctl for devicee
> Oct 25 16:59:59 basil pppd[411]: ioctl (PPPIOCGFLAGS): Inappropriate
> ioctl for devicee

> Obviously as pppd is exiting, it performs some shutdown routines which
> are causing these errors. Does anyone have any ideas???

Has your shell been exiting before?

Better write the script in a way so that it `exec's pppd as its last
action.  This way, the session (that will get the SIGHUP) will be
passed entirely to pppd, without any further instance of a shell.
This also saves some resources.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)