help-gnu-utils
[Top][All Lists]
Advanced

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

Re: gmake exit codes


From: Paul Jarc
Subject: Re: gmake exit codes
Date: Fri, 21 May 2004 11:58:16 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

"Mark Brandyberry" <mdbrandy@uiuc.edu> wrote:
> The gnu make docs say that gmake will always return 0, 1, 2.  Should it ever
> be returning "512" to me? If so, what would it mean?

It's returning 1.  The documentation for system() and wait() tells you
how to get the real exit code from the value returned by system().
if (WIFSIGNALED(value))
  make was killed by WTERMSIG(value)
else if (WIFSTOPPED(value)) /* can't happen for system() */
  make was stopped by WSTOPSIG(value)
else /* WIFEXITED(value) */
  make exited with status WEXITSTATUS(value)


paul




reply via email to

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