[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attribute warn_unused_result

From: Eli Zaretskii
Subject: Re: attribute warn_unused_result
Date: Sun, 06 Feb 2011 23:26:17 +0200

> Date: Sun, 06 Feb 2011 12:11:35 -0800
> From: Paul Eggert <address@hidden>
> CC: address@hidden, address@hidden
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]