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

handle possible failure of fstat #27

Open
drbitboy opened this issue Feb 13, 2023 · 0 comments
Open

handle possible failure of fstat #27

drbitboy opened this issue Feb 13, 2023 · 0 comments

Comments

@drbitboy
Copy link
Collaborator

fstat(SM_fd, &file_stat);

Should we ignore failure of that fstat call?

From man fstat(2), the only reasons it could fail in this context is if the kernel was out of memory, or it is called on a 32-bit architecture with a file bigger than 2GB or 4Gb, so I don't see this as an urgent issue.

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

1 participant