[M3commit] CVS Update: cm3
Jay K
jay.krell at cornell.edu
Wed Jun 9 19:23:31 CEST 2010
attached
ALPHA_OSF can now (again) get at least as far as starting to build natively in m3-sys/m3cc..waiting..
(stack walker disabled, granted)
- Jay
----------------------------------------
> Date: Wed, 9 Jun 2010 19:20:18 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
>
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 10/06/09 19:20:18
>
> Modified files:
> cm3/m3-libs/m3core/src/unix/Common/: Uexec.c
>
> Log message:
> Only call WEXITSTATUS if WIFEXITED.
> Only call WTERMSIG if WIFSIGNALED.
> Otherwise we get -1 and a subrange violation on OSF/1, due to:
> /* evaluates to the low-order 8 bits of the child exit status */
> #define WEXITSTATUS(x) (WIFEXITED(x) ? ((_W_INT(x)>> 8) & 0377) : -1)
> /* evaluates to a non-zero value if status returned for abnormal termination */
> #define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0)
> /* evaluates to the number of the signal that caused the child to terminate */
> #define WTERMSIG(x) (WIFSIGNALED(x) ? _WSTATUS(x) : -1)
>
> and a careful read of Posix validates this change.
> They don't say what WEXITSTATUS and WTERMSIG do if WIFEXITED, WIFSIGNALED
> are false, only if true.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wait.txt
URL: <http://m3lists.elegosoft.com/pipermail/m3commit/attachments/20100609/25fa7f1a/attachment-0002.txt>
More information about the M3commit
mailing list