]> git.cworth.org Git - apitrace/commit
os_posix: Fix return value for os::execute()
authorCarl Worth <cworth@cworth.org>
Tue, 3 Apr 2012 22:58:50 +0000 (15:58 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 11 Apr 2012 13:57:55 +0000 (14:57 +0100)
commit4644dc65e83c56ba0bb577f57cd20e7419f3ade4
treedcaf56ea6265d188d544d75bb1f53e3b4328f049
parentae3981a47606435ed5d3567384d96c07f8d01131
os_posix: Fix return value for os::execute()

Previously, this was returning the status value from waitpid directly.

That is incorrect as the actual exit status from the executed program
is likely to be in high-order bits of that status value. Instead, use
the WEXITSTATUS macro to return the actual exit status value.

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
common/os_posix.cpp