From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: attribute warn_unused_result Date: Sun, 06 Feb 2011 23:26:17 +0200 Message-ID: <834o8gua6e.fsf@gnu.org> 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> <4D4F0077.2090705@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1297028049 24673 80.91.229.12 (6 Feb 2011 21:34:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2011 21:34:09 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 22:34:02 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 1PmCF8-0001O7-AB for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 22:34:02 +0100 Original-Received: from localhost ([127.0.0.1]:54060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmC7g-0000R2-Ow for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2011 16:26:20 -0500 Original-Received: from [140.186.70.92] (port=53356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmC7a-0000Qd-Bq for emacs-devel@gnu.org; Sun, 06 Feb 2011 16:26:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmC7Y-0006J4-96 for emacs-devel@gnu.org; Sun, 06 Feb 2011 16:26:13 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmC7Y-0006Iu-2m for emacs-devel@gnu.org; Sun, 06 Feb 2011 16:26:12 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LG700M00RLJ6500@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 06 Feb 2011 23:26:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.171.5]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LG700MT3SVI1780@a-mtaout22.012.net.il>; Sun, 06 Feb 2011 23:26:07 +0200 (IST) In-reply-to: <4D4F0077.2090705@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:135659 Archived-At: > Date: Sun, 06 Feb 2011 12:11:35 -0800 > From: Paul Eggert > CC: cyd@stupidchicken.com, emacs-devel@gnu.org > > 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. It can if we decide that it's TRT. > 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. I guess the probability of chdir to fail is not very high. > 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. If there are no such platforms, perhaps all that function should become DOS_NT only.