From owner-cvs-all Sat Feb 14 01:47:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA26837 for cvs-all-outgoing; Sat, 14 Feb 1998 01:47:43 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA26819; Sat, 14 Feb 1998 01:47:40 -0800 (PST) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA01106; Sat, 14 Feb 1998 01:47:15 -0800 (PST) Date: Sat, 14 Feb 1998 01:47:15 -0800 (PST) Message-Id: <199802140947.BAA01106@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-contrib@FreeBSD.ORG Subject: cvs commit: src/contrib/cvs/src rcscmds.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1998/02/14 01:47:15 PST Modified files: contrib/cvs/src rcscmds.c Log: A hack to work around the sleep prior to calling the built-in diff. This affects speed of doing 'cvs diff' (in all modes) and 'cvs update' over the network. 1: don't pause at all unless running in server protocol mode. 2: if running in server protocol mode, do a kludge that intercepts the stdout and stderr write functions and diverts them to cvs_output() and cvs_outerr(). Yes, this might be done with fwopen() etc, but that also requires copying "FILE" structs since you can't freopen stdout etc and specify functions at the same time. This HACK will go away once the cvs folks have done their changes to the library version of gnu diff to use the callbacks as mentioned in the comments. Revision Changes Path 1.3 +114 -4 src/contrib/cvs/src/rcscmds.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message