Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2001 21:05:17 -0700
From:      Mike Porter <mupi@mknet.org>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>, Ian Dowse <iedowse@maths.tcd.ie>
Cc:        Alfred Perlstein <bright@wintelcom.net>, freebsd-stable@FreeBSD.ORG
Subject:   Re: suspend/restore with ppp connections
Message-ID:  <01031321051700.26413@mukappa.home.com>
In-Reply-To: <20010312145622.A87895@dogma.freebsd-uk.eu.org>
References:  <20010312135826.F86948@dogma.freebsd-uk.eu.org> <200103121440.aa97105@salmon.maths.tcd.ie> <20010312145622.A87895@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 12 March 2001 07:56, j mckitrick wrote:
> | The problem is that the card has been reattached, so com->gone is
> | 0. However com->tp is NULL because the driver has not seen an open()
> | since attachment. It would probably be possible to add a few tests
> | for com->tp != NULL in a few places, but sio.c has bigger problems
> | in this area. It seems that a struct tty will be leaked for every
> | insert/removal too. There is also a missing call to the line
> | discipline's l_close function in the forced detach case.
>
> Now this is the kind of thing I would be interested in helping fix.  But if
> you say sio has bigger problems, I might be in over my head.  What would
> happen if I just added those tests for NULL?
>

Maybe it's just me, but why don't you just add into /etc/rc.suspend code to 
ring down the ppp connection? (which is more or less what windoze does to get 
around the pitfalls involved....)

mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.3 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjqu7gAACgkQZ7GovTQbIm7bnwCfddTH2lWmLvKUmo1mxYsefaia
jDsAn34931du7dxHyFyuMahq2xFn6C7E
=9wXy
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01031321051700.26413>