From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: attribute warn_unused_result Date: Sun, 06 Feb 2011 12:11:35 -0800 Organization: UCLA Computer Science Department Message-ID: <4D4F0077.2090705@cs.ucla.edu> References: <83r5bobz2k.fsf@gnu.org> <4D4B4EEA.50907@cs.ucla.edu> <83hbckb3u4.fsf@gnu.org> <83zkqbah6c.fsf@gnu.org> <4D4C95B8.6010001@cs.ucla.edu> <4D4DFAB9.10609@cs.ucla.edu> <83sjw1957e.fsf@gnu.org> <4D4E47E4.10809@cs.ucla.edu> <4D4EEF73.4080303@cs.ucla.edu> <837hddt14h.fsf@gnu.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 1297023114 1451 80.91.229.12 (6 Feb 2011 20:11:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2011 20:11:54 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 21:11:50 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmAxZ-0005UE-0r for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 21:11:49 +0100 Original-Received: from localhost ([127.0.0.1]:48704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmAxY-0005sm-OX for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 15:11:48 -0500 Original-Received: from [140.186.70.92] (port=60220 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmAxR-0005ri-OI for emacs-devel@gnu.org; Sun, 06 Feb 2011 15:11:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmAxQ-0004d5-4M for emacs-devel@gnu.org; Sun, 06 Feb 2011 15:11:41 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:60505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmAxO-0004cS-Kh; Sun, 06 Feb 2011 15:11:38 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 9071839E80E0; Sun, 6 Feb 2011 12:11:36 -0800 (PST) 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 v8x6cDRiCg9e; Sun, 6 Feb 2011 12:11:36 -0800 (PST) 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 1F4FE39E80DB; Sun, 6 Feb 2011 12:11:36 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 In-Reply-To: <837hddt14h.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135656 Archived-At: On 02/06/2011 11:27 AM, Eli Zaretskii wrote: > I actually question the resulting behavior on Posix platforms: AFAIU, > Emacs will (almost silently) do nothing. Is that a good UI? Should > we perhaps signal an error instead? Emacs can't merely signal an error there, since it's in the child. My recent change causes Emacs to report chdir failure the same way it reports execlp failure. If the former behavior isn't right, the latter isn't either; and I expect that the latter behavior has been there for decades. For modern mainstream platforms the issue doesn't come up, as this code is exercised only on weird POSIXish platforms that can't suspend Emacs. I last used a platform like that in the 1980s, and I expect they're very low priority now. For Windows things may well be different, but that difference can be put into #ifdef DOS_NT code.