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

Add some error handling for robustness. #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

emixa-d
Copy link

@emixa-d emixa-d commented Aug 25, 2022

I do not use restartd myself, someone else needs to check whether it still works.

This makes the code a little more robust.
This makes the code a little more robust. What if /var/run does not
exist, or we do not have permission to open
/var/run/restartd.pid (EPERM?) due to SELinux misconfiguration?
This makes the code a little more robust. What if the write was
refused to the underlying device being removed?

The --help, debug and stderr printfs were ignored because there error
handling does not appear important to me.
This makes the code a little more robust. What if a quotum is exceeded?
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.

None yet

1 participant