From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#9800: Incomplete truncated file buffers from the /proc filesystem Date: Sun, 23 Oct 2011 19:53:15 -0700 Organization: UCLA Computer Science Department Message-ID: <4EA4D31B.4050604@cs.ucla.edu> References: <877h40vb8h.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319424824 20066 80.91.229.12 (24 Oct 2011 02:53:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 02:53:44 +0000 (UTC) To: 9800@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 24 04:53:38 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIAfQ-0007Cl-TN for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 04:53:37 +0200 Original-Received: from localhost ([::1]:47341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIAfQ-0001T9-9k for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2011 22:53:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIAfO-0001T2-1y for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 22:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIAfN-000638-8E for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 22:53:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIAfN-00062v-2l for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 22:53:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RIAgn-0000K3-ML for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 22:55:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877h40vb8h.fsf@mail.jurta.org> Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 02:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9800-submit@debbugs.gnu.org id=B9800.13194248901218 (code B ref 9800); Mon, 24 Oct 2011 02:55:01 +0000 Original-Received: (at 9800) by debbugs.gnu.org; 24 Oct 2011 02:54:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIAgb-0000Ja-3D for submit@debbugs.gnu.org; Sun, 23 Oct 2011 22:54:49 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIAgZ-0000JP-8J for 9800@debbugs.gnu.org; Sun, 23 Oct 2011 22:54:47 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id E563CA60002 for <9800@debbugs.gnu.org>; Sun, 23 Oct 2011 19:53:12 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G00S8lMwydDo for <9800@debbugs.gnu.org>; Sun, 23 Oct 2011 19:53:12 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9D97239E8006 for <9800@debbugs.gnu.org>; Sun, 23 Oct 2011 19:53:12 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 23 Oct 2011 22:55:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53051 Archived-At: It strikes me that regular files can go as you read them, too, and that Emacs is not doing this properly. That is, Emacs should be fixed so that it continues to read from a growing regular file until a proper EOF is reached (i.e., until read returns 0). If Emacs is fixed in this way, it will read these /proc files correctly too.