From owner-cvs-usrsbin Sat Dec 27 05:49:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA27852 for cvs-usrsbin-outgoing; Sat, 27 Dec 1997 05:49:34 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA27804; Sat, 27 Dec 1997 05:48:51 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id FAA03433; Sat, 27 Dec 1997 05:44:44 -0800 (PST) Date: Sat, 27 Dec 1997 05:44:44 -0800 (PST) Message-Id: <199712271344.FAA03433@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/pppctl pppctl.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1997/12/27 05:44:44 PST Modified files: usr.sbin/pppctl pppctl.c Log: Remove bogus timeout code in Receive(). Don't read(fd, buffer, 0) and think ppp has closed the connection when `buffer' is full, instead, flush most of buffer to the terminal and read() for a reasonable length. This fixes "show route" when there's more than 2k of routing output. Revision Changes Path 1.15 +13 -7 src/usr.sbin/pppctl/pppctl.c