Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong terminationStatus #14

Closed
anton-simakov opened this issue Oct 3, 2016 · 3 comments
Closed

Wrong terminationStatus #14

anton-simakov opened this issue Oct 3, 2016 · 3 comments

Comments

@anton-simakov
Copy link

anton-simakov commented Oct 3, 2016

I noticed that my task reports a wrong terminationStatus. I think the problem is in this code waitpid(_processIdentifier, &_terminationStatus, 0); To get the status information it is necessary to use WEXITSTATUS macro.

@anton-simakov
Copy link
Author

Hi,

Thanks for the fix. It seems there is one more place that needs to be patched:

- (void)waitUntilExit
{
    waitpid(_processIdentifier, &_terminationStatus, 0);
    _isRunning = NO;
}

@sveinbjornt
Copy link
Owner

Fixed in master, making a new release.

@anton-simakov
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants