Re: 2.3.51 -

From: David A. Bandel (david@pananix.com)
Date: Thu Apr 13 2000 - 19:26:49 EST


That patch worked perfectly -- thanx. I have demand dialing back in
2.3.11 (patched on 2.3.99-pre5. Nice not to see Bad file descriptor(9)
- pppd exiting.

Ciao,

David A. Bandel

-- 
Focus on the dream, not the competition.
		-- Nemesis Racing Team motto

Clemens Huebner wrote: > > "David A. Bandel" wrote: > > So, it's something in the demand dialing portion of the ppp code. Not > > good. Means the system I wanted to upgrade (for netfilter), I can't. > > Hi David, > > having had the same problem i looked at the pppd code. The following > should > fix your problem. Its an ugly, probably not complete fix, but it works > for me: > > clemens@banjo:/home/linux$ diff -u ppp-2.3.11/pppd/sys-linux.c > ppp-2.3.11-fixed/pppd/sys-linux.c > --- ppp-2.3.11/pppd/sys-linux.c Wed Dec 22 15:51:31 1999 > +++ ppp-2.3.11-fixed/pppd/sys-linux.c Thu Apr 13 00:18:01 2000 > @@ -852,7 +852,7 @@ > len -= 2; > } > nr = read(ppp_fd, buf, len); > - if (new_style_driver && nr < 0 && (errno == EWOULDBLOCK || errno == > EIO)) > + if (new_style_driver && nr < 0 && (errno == EWOULDBLOCK || errno == > EIO ||ppp_fd==-1)) > nr = read(ppp_dev_fd, buf, len); > if (nr < 0) { > if (errno == EWOULDBLOCK || errno == EIO) > > Hope this helps, > Clemens > > > > Thanx, > > > > David A. Bandel

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:23 EST