*BSD News Article 94753


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
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!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news.sprintlink.net!sprint!uunet!in3.uu.net!165.254.2.53!nonexistent.com!not-for-mail
From: "Jim Carroll" <jim@carroll.com>
Subject: ppp -background does not hangup
X-Newsreader: Microsoft Internet News 4.70.1160
X-Complaints-To: Email abuse@news2.new-york.net if this posting is inappropriate
Cache-Post-Path: hercules.carroll.com!unknown@jc.carroll.com
Organization: Carroll-Net
Message-ID: <E9FL41.Jsr@nonexistent.com>
X-Trace: 862370208 16099 (None) [199.224.10.73]
X-Nntp-Posting-Host: hercules.carroll.com
Date: Wed, 30 Apr 1997 03:16:49 GMT
Lines: 21
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39975



I have been working with the ij-ppp program for the better part of two
days, and cannot seem to get it to hangup.

I have tracked my problem down to the module modem.c, the function
ModemTimeout().  It appears that the mbits returned from the function call

	ioctl(modem, TIOCMGET, &mbits)

always returns with the bit TIOCM_CD bit set indicating we are still
online.  I have forcibly dropped the line (from the other side of the
connection), but the ioctl call continues to report we are online.

I am at a loss to track down the code any further.  I have spent some time
in the serial device driver (sio.c), but haven't had the time to really
take it apart.  Could someone point me in the right direction?

I would very much appreciate it.

Thanks