Skip to content

Remove use of readProcess #41

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

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Remove use of readProcess #41

merged 3 commits into from
Aug 30, 2022

Conversation

adinapoli
Copy link
Contributor

Fixes #39. This PR replaces occurrences of readProcess with readProcessWithExitCode. In case of failures, the stderr is logged, but the overall ridley process is not aborted.

This commit uses `readProcessWithExitCode` instead of `readProcess` for
`getDiskStats` in order to be resilient to failures. This has also the
crucial advantage that we don't propagate the error upstream to the
parent process, killing it.
@adinapoli adinapoli merged commit d0d045e into master Aug 30, 2022
@adinapoli adinapoli deleted the adinapoli/issue-39 branch August 30, 2022 10:23
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

Successfully merging this pull request may close these issues.

getDiskStats should be more robust to df failures
1 participant