Received: with ECARTIS (v1.0.0; list netdev); Thu, 18 Nov 2004 14:17:12 -0800 (PST) Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.132]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iAIMH1Yv007087; Thu, 18 Nov 2004 14:17:07 -0800 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id iAIMGbAD417284; Thu, 18 Nov 2004 17:16:37 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id iAIMGaVR189650; Thu, 18 Nov 2004 15:16:36 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id iAIMGa32005007; Thu, 18 Nov 2004 15:16:36 -0700 Received: from d03nm121.boulder.ibm.com (d03nm121.boulder.ibm.com [9.17.195.147]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id iAIMGYVY004943; Thu, 18 Nov 2004 15:16:36 -0700 In-Reply-To: <20041118220719.GA9890@gondor.apana.org.au> To: Herbert Xu Cc: "Chad N. Tindel" , linux-net@vger.kernel.org, netdev@oss.sgi.com, netdev-bounce@oss.sgi.com, Stephen Hemminger MIME-Version: 1.0 Subject: Re: Wrong UIDs reported in /proc/net/tcp X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: David Stevens Date: Thu, 18 Nov 2004 14:16:33 -0800 X-MIMETrack: Serialize by Router on D03NM121/03/M/IBM(Release 6.51HF338 | June 21, 2004) at 11/18/2004 15:16:35, Serialize complete at 11/18/2004 15:16:35 Content-Type: text/plain; charset="US-ASCII" X-archive-position: 11974 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: dlstevens@us.ibm.com Precedence: bulk X-list: netdev Isn't the read itself atomic? Assuming so, another solution would be to stat/fstat the file, add some to it to account for growth, allocate a buffer that big and read the whole thing in one shot. Then the results should be self-consistent. +-DLS