Skip to content

Conversation

@lollipopman
Copy link
Contributor

Prior to this commit the return code of the pclose function was assumed to be the exit code of the process. However, the returned value as specified in wait(2) is a bit packed integer and must be interpreted with the provided macros. After this commit we use the macros to obtain the status code and also add some logging on failure.

For WIN32 we only check if the return value is non-zero, which should solve, #43327

Prior to this commit the return code of the pclose function was assumed
to be the exit code of the process. However, the returned value as
specified in wait(2) is a bit packed integer and must be interpreted
with the provided macros. After this commit we use the macros to obtain
the status code and also add some logging on failure.

For WIN32 we only check if the return value is non-zero, which should
solve, #43327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant