unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Process exit status on different platforms
@ 2010-01-07  8:34 Lennart Borgman
  2010-02-23 20:18 ` Davis Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2010-01-07  8:34 UTC (permalink / raw)
  To: Emacs-Devel devel

Are there any variable that could be used to check if call-process
exited with success status?

Is not this return value platform dependent?



BTW a small manual bug on page (info "(elisp) Synchronous Processes"):

 -- Function: call-process program &optional infile destination display
          &rest args
     This function calls PROGRAM in a separate process and waits for it
     to finish.

This is wrong since it does not wait if destination is 0.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Process exit status on different platforms
  2010-01-07  8:34 Process exit status on different platforms Lennart Borgman
@ 2010-02-23 20:18 ` Davis Herring
  2010-02-23 20:27   ` Lennart Borgman
  0 siblings, 1 reply; 3+ messages in thread
From: Davis Herring @ 2010-02-23 20:18 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

[Sorry this reply is so much delayed; perhaps it will nevertheless be
useful.]

> Are there any variable that could be used to check if call-process
> exited with success status?

I don't know of any.

> Is not this return value platform dependent?

Not much.  VMS is the only system I know of that doesn't use the "0 means
success, and everything else means some kind of failure but there's little
to no convention" convention.  I think it uses 1 for success and 44 for
catastrophic failure (with other values for minor problems), but that's
just from a very little searching.  (It's worth noting, as the glibc
manual says, that 1 means "successfully found differences" in diff and the
like, and it means merely "no matches" in grep and the like:
http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html)

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Process exit status on different platforms
  2010-02-23 20:18 ` Davis Herring
@ 2010-02-23 20:27   ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2010-02-23 20:27 UTC (permalink / raw)
  To: herring; +Cc: Emacs-Devel devel

On Tue, Feb 23, 2010 at 9:18 PM, Davis Herring <herring@lanl.gov> wrote:
> [Sorry this reply is so much delayed; perhaps it will nevertheless be
> useful.]
>
>> Are there any variable that could be used to check if call-process
>> exited with success status?
>
> I don't know of any.
>
>> Is not this return value platform dependent?
>
> Not much.  VMS is the only system I know of that doesn't use the "0 means
> success, and everything else means some kind of failure but there's little
> to no convention" convention.  I think it uses 1 for success and 44 for
> catastrophic failure (with other values for minor problems), but that's
> just from a very little searching.  (It's worth noting, as the glibc
> manual says, that 1 means "successfully found differences" in diff and the
> like, and it means merely "no matches" in grep and the like:
> http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html)


Thanks, at the moment I can't remember exactly why I asked ... eh, yes I do ;-)

I think it will be useful to simplify at least my bug hunting.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-23 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07  8:34 Process exit status on different platforms Lennart Borgman
2010-02-23 20:18 ` Davis Herring
2010-02-23 20:27   ` Lennart Borgman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).