Dan Jacobson <[EMAIL PROTECTED]> writes:
> I am worried about the standard going offline procedures when we still
> are fetching and want to hang up the phone even though there is lots
> more to fetch.
>
> If all works as it should, then after hanging up there should be lots
> of stuff still in 'outgoing'.
>
> However isn't there a race condition involved in just relying on poff
> and its scripts? That the connection is severed, wwwoffle gets Domain
> Not Found for lots of files in outgoing, and only then is wwwoffle told
> to go offline...
Yes, this is a problem. You should call 'wwwoffle -offline' before
you actually sever the link.
> Therefore one needs to alias byebye='wwwoffle -offline; poff' it seems.
This would work, but is only needed if poff by itself doesn't run the
scripts in /etc/ppp/ip-down.d before breaking the link.
> This theoretically just leaves the 7 or 8 files that are actually
> being fetched at the time to worry about, eh?
Yes. When 'wwwoffle -offline' is called then no more page fetches
will be started.
> Anyways, have I shown that putting wwwoffle -offline in say
> /etc/ppp/ip-down.d/99wwwoffle is just plain wrong?
The manual page for pppd indicates that the scripts are run after the
link has gone. So in that case there is a race condition.
You could try renaming /etc/ppp/ip-down.d/99wwwoffle to
/etc/ppp/ip-down.d/0wwwoffle so that it gets called earlier and
reduces the time for the problem to occur.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.7/user.html