From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#9800: Incomplete truncated file buffers from the /proc filesystem Date: Mon, 24 Oct 2011 17:50:14 -0400 Message-ID: References: <877h40vb8h.fsf@mail.jurta.org> <4EA4D31B.4050604@cs.ucla.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1319493046 4232 80.91.229.12 (24 Oct 2011 21:50:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 21:50:46 +0000 (UTC) Cc: 9800@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 24 23:50:41 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 1RISPo-0005kH-F4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 23:50:40 +0200 Original-Received: from localhost ([::1]:39429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RISPo-0005Ce-1B for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 17:50:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RISPe-00052Y-BL for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 17:50:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RISPc-0001vu-RD for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 17:50:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RISPc-0001vm-NC for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 17:50:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RISR7-0005mh-P0 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 17:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 21:52: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.131949311122218 (code B ref 9800); Mon, 24 Oct 2011 21:52:01 +0000 Original-Received: (at 9800) by debbugs.gnu.org; 24 Oct 2011 21:51:51 +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 1RISQw-0005mJ-He for submit@debbugs.gnu.org; Mon, 24 Oct 2011 17:51:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RISQu-0005mC-SY for 9800@debbugs.gnu.org; Mon, 24 Oct 2011 17:51:49 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RISPO-0007Eu-TE; Mon, 24 Oct 2011 17:50:14 -0400 In-reply-to: <4EA4D31B.4050604@cs.ucla.edu> (message from Paul Eggert on Sun, 23 Oct 2011 19:53:15 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 Oct 2011 17:52: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:53093 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). I think there was a reason for doing it this way. Perhaps so as to allocate the space before reading the file. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use free telephony http://directory.fsf.org/category/tel/